From f13d035986162a89d1e7e441bba701df9a01c091 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 19 Feb 2005 11:07:20 +0000 Subject: [PATCH] Couple bug-fixes in regards to editor selection during new user creation: When answering 'No' to the "Use an external text editor?" question, it would not force the editor to the internal line editor. When selecting an external editor, if hitting 'Q' from the selection dialog, the current editor would be changed anyway. These had nothing to do with the web/html/newuser.ssjs problem. :-) --- src/sbbs3/newuser.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/sbbs3/newuser.cpp b/src/sbbs3/newuser.cpp index 839a19b5f6..f24752d3e0 100644 --- a/src/sbbs3/newuser.cpp +++ b/src/sbbs3/newuser.cpp @@ -346,13 +346,14 @@ BOOL sbbs_t::newuser() if(i<cfg.total_xedits) useron.xedit=i+1; - if(cfg.total_xedits && cfg.uq&UQ_XEDIT - && !noyes("Use an external text editor")) { - if(useron.xedit) useron.xedit--; - for(i=0;i<cfg.total_xedits;i++) - uselect(1,i,"External Editor",cfg.xedit[i]->name,cfg.xedit[i]->ar); - if((int)(i=uselect(0,useron.xedit,0,0,0))>=0) - useron.xedit=i+1; + if(cfg.total_xedits && cfg.uq&UQ_XEDIT) { + if(yesno("Use an external message editor")) { + for(i=0;i<cfg.total_xedits;i++) + uselect(1,i,"External Editor",cfg.xedit[i]->name,cfg.xedit[i]->ar); + if((int)(i=uselect(0,useron.xedit ? useron.xedit-1 : 0,0,0,0))>=0) + useron.xedit=i+1; + } else + useron.xedit=0; } if(cfg.total_shells>1 && cfg.uq&UQ_CMDSHELL) { -- GitLab