aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_dlg.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-10-03 21:03:08 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-10-03 21:03:08 +0000
commit57be028caf8898f526be1b57b6e4853bf2b69223 (patch)
treeab4eef6c02df723decfaa8ef0008a0f2ed4ed21c /gtk/proto_dlg.c
parent1468c0b25319dafb87c2d49f1d7ba6514a8179f4 (diff)
As Stephen Fisher noted, the Apply button should also save the changed settings (if the Save button is disabled)
svn path=/trunk/; revision=19418
Diffstat (limited to 'gtk/proto_dlg.c')
-rw-r--r--gtk/proto_dlg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/proto_dlg.c b/gtk/proto_dlg.c
index 0647a920db..3e428af699 100644
--- a/gtk/proto_dlg.c
+++ b/gtk/proto_dlg.c
@@ -457,6 +457,11 @@ proto_ok_cb(GtkWidget *ok_bt _U_, gpointer parent_w)
static void
proto_apply_cb(GtkWidget *apply_bt _U_, gpointer parent_w)
{
+ /* if we don't have a Save button, just save the settings now */
+ if (!prefs.gui_use_pref_save) {
+ proto_write(parent_w);
+ }
+
if (set_proto_selection(GTK_WIDGET(parent_w)))
cf_redissect_packets(&cfile);
}