~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Can now save and load settings under Unix.
[sgt/putty]
/
unix
/
gtkdlg.c
diff --git
a/unix/gtkdlg.c
b/unix/gtkdlg.c
index
f5fe5d4
..
98cb88f
100644
(file)
--- a/
unix/gtkdlg.c
+++ b/
unix/gtkdlg.c
@@
-993,6
+993,7
@@
static void list_selchange(GtkList *list, gpointer data)
{
struct dlgparam *dp = (struct dlgparam *)data;
struct uctrl *uc = dlg_find_bywidget(dp, GTK_WIDGET(list));
{
struct dlgparam *dp = (struct dlgparam *)data;
struct uctrl *uc = dlg_find_bywidget(dp, GTK_WIDGET(list));
+ if (!uc) return;
uc->ctrl->generic.handler(uc->ctrl, dp, dp->data, EVENT_SELCHANGE);
}
uc->ctrl->generic.handler(uc->ctrl, dp, dp->data, EVENT_SELCHANGE);
}
@@
-1922,7
+1923,7
@@
int do_config_box(const char *title, Config *cfg)
gtk_widget_unref(listitem);
}
gtk_widget_unref(listitem);
}
-
sl.nsessions = 0
;
+
get_sesslist(&sl, TRUE)
;
for (index = 0; index < lenof(scs.sc); index++) {
scs.sc[index].action = SHORTCUT_EMPTY;
for (index = 0; index < lenof(scs.sc); index++) {
scs.sc[index].action = SHORTCUT_EMPTY;
@@
-2115,6
+2116,7
@@
int do_config_box(const char *title, Config *cfg)
gtk_main();
gtk_main();
+ get_sesslist(&sl, FALSE);
dlg_cleanup(&dp);
sfree(selparams);
dlg_cleanup(&dp);
sfree(selparams);