Skip to content
Snippets Groups Projects
Commit f13d0359 authored by rswindell's avatar rswindell
Browse files

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. :-)
parent cc981495
Branches
Tags
No related merge requests found
...@@ -346,13 +346,14 @@ BOOL sbbs_t::newuser() ...@@ -346,13 +346,14 @@ BOOL sbbs_t::newuser()
if(i<cfg.total_xedits) if(i<cfg.total_xedits)
useron.xedit=i+1; useron.xedit=i+1;
if(cfg.total_xedits && cfg.uq&UQ_XEDIT if(cfg.total_xedits && cfg.uq&UQ_XEDIT) {
&& !noyes("Use an external text editor")) { if(yesno("Use an external message editor")) {
if(useron.xedit) useron.xedit--; for(i=0;i<cfg.total_xedits;i++)
for(i=0;i<cfg.total_xedits;i++) uselect(1,i,"External Editor",cfg.xedit[i]->name,cfg.xedit[i]->ar);
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)
if((int)(i=uselect(0,useron.xedit,0,0,0))>=0) useron.xedit=i+1;
useron.xedit=i+1; } else
useron.xedit=0;
} }
if(cfg.total_shells>1 && cfg.uq&UQ_CMDSHELL) { if(cfg.total_shells>1 && cfg.uq&UQ_CMDSHELL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment