Skip to content
Snippets Groups Projects
Commit a8c1f1e6 authored by deuce's avatar deuce
Browse files

Only update title if the current option has changed.

Real fix for the disappearing status bar issue after failed connect.
parent cc1ca285
No related branches found
No related tags found
No related merge requests found
......@@ -332,13 +332,14 @@ struct bbslist *show_bbslist(char* listpath, int mode, char *home)
{
struct bbslist *list[MAX_OPTS+1];
int i,j;
int opt=0,bar=0;
int opt=0,bar=0,oldopt=-1;
static struct bbslist retlist;
int val;
int listcount=0;
char str[6];
char *YesNo[3]={"Yes","No",""};
char title[1024];
char currtitle[1024];
char *p;
if(init_uifc(TRUE, TRUE))
......@@ -365,9 +366,6 @@ struct bbslist *show_bbslist(char* listpath, int mode, char *home)
if(p!=NULL)
*p=')';
}
else
strcpy(title,syncterm_version);
settitle(title);
val=uifc.list((listcount<MAX_OPTS?WIN_XTR:0)
|WIN_ORG|WIN_MID|WIN_INS|WIN_DEL|WIN_EDIT|WIN_EXTKEYS|WIN_INSACT|WIN_DYN
,0,0,0,&opt,&bar,mode==BBSLIST_SELECT?"Directory":"Edit",(char **)list);
......@@ -387,6 +385,7 @@ struct bbslist *show_bbslist(char* listpath, int mode, char *home)
if(list[j]->id==i)
opt=j;
}
oldopt=-1;
}
break;
#endif
......@@ -490,6 +489,7 @@ struct bbslist *show_bbslist(char* listpath, int mode, char *home)
if(list[j]->id==listcount-1)
opt=j;
}
oldopt=-1;
}
break;
case MSK_DEL:
......@@ -518,6 +518,7 @@ struct bbslist *show_bbslist(char* listpath, int mode, char *home)
list[i]->id=i;
}
listcount--;
oldopt=-1;
break;
case MSK_EDIT:
i=list[opt]->id;
......@@ -527,6 +528,7 @@ struct bbslist *show_bbslist(char* listpath, int mode, char *home)
if(list[j]->id==i)
opt=j;
}
oldopt=-1;
}
break;
}
......@@ -540,6 +542,7 @@ struct bbslist *show_bbslist(char* listpath, int mode, char *home)
if(list[j]->id==i)
opt=j;
}
oldopt=-1;
}
}
else {
......
......@@ -248,7 +248,6 @@ int main(int argc, char **argv)
if(!conn_connect(bbs->addr,bbs->port,bbs->reversed?bbs->password:bbs->user,bbs->reversed?bbs->user:bbs->password,bbs->syspass,bbs->conn_type,bbs->bpsrate)) {
/* ToDo: Update the entry with new lastconnected */
/* ToDo: Disallow duplicate entries */
init_uifc(TRUE, TRUE);
bbs->connected=time(NULL);
bbs->calls++;
if(bbs->id != -1) {
......@@ -310,6 +309,7 @@ int main(int argc, char **argv)
}
else
bbs=NULL;
init_uifc(TRUE, TRUE);
}
uifcbail();
#ifdef _WINSOCKAPI_
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment