Commit 764630cf authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Save/restore the current selected user

Addresses issue #350.

Also fixed up the alignment of the header/columns.
parent b1bb5630
Pipeline #2775 passed with stage
in 9 minutes and 21 seconds
...@@ -2097,6 +2097,8 @@ int main(int argc, char** argv) { ...@@ -2097,6 +2097,8 @@ int main(int argc, char** argv) {
finduser(&cfg,&user); finduser(&cfg,&user);
} }
if(j==2) { if(j==2) {
int curuser = 0;
int curbar = 0;
/* List All Users */ /* List All Users */
done=0; done=0;
while(!done) { while(!done) {
...@@ -2108,12 +2110,12 @@ int main(int argc, char** argv) { ...@@ -2108,12 +2110,12 @@ int main(int argc, char** argv) {
} }
opt[i-1][0]=0; opt[i-1][0]=0;
i=0; i=0;
switch(uifc.list(WIN_ORG|WIN_MID|WIN_ACT,0,0,0,&i,0,"DI Real Name Alias ",opt)) { switch(uifc.list(WIN_ORG|WIN_MID|WIN_ACT,0,0,0,&curuser,&curbar,"DI Real Name Alias ",opt)) {
case -1: case -1:
done=1; done=1;
break; break;
default: default:
edit_user(&cfg, i+1); edit_user(&cfg, curuser+1);
break; break;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment