summaryrefslogtreecommitdiff
path: root/ui/gtk/simple_dialog.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-07-17 04:52:19 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-07-17 04:52:19 +0000
commite0341f776c6d5d540013175e79b0000aa480b54d (patch)
treeffe9491cf297fac02ff382fa87c7351157166e18 /ui/gtk/simple_dialog.c
parent97ca7816718cb7e22b4c8d03b40fae63459eaaf7 (diff)
downloadwireshark-e0341f776c6d5d540013175e79b0000aa480b54d.tar.gz
From Cal Turney:
Unrecognized preferences and color filters created in proprietary or older versions are discarded when saved. If the user attempts to save the preferences or colorfilters file, a popup is displayed that warns that unrecognized prefs or color filters have been detected and will be discarded if the save operation is allowed to proceed. In the case of Preferences, the popup message includes the version at which the file was last saved. A "Continue without Saving" button is provided so that the user can save the profile under a different name. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8942 svn path=/trunk/; revision=50690
Diffstat (limited to 'ui/gtk/simple_dialog.c')
-rw-r--r--ui/gtk/simple_dialog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gtk/simple_dialog.c b/ui/gtk/simple_dialog.c
index 76e8ec0659..66d1795b89 100644
--- a/ui/gtk/simple_dialog.c
+++ b/ui/gtk/simple_dialog.c
@@ -188,6 +188,9 @@ display_simple_dialog(gint type, gint btn_mask, char *message)
case(ESD_BTNS_YES_NO_CANCEL):
bbox = dlg_button_row_new(GTK_STOCK_YES, GTK_STOCK_NO, GTK_STOCK_CANCEL, NULL);
break;
+ case(ESD_BTNS_SAVE_DONTSAVE):
+ bbox = dlg_button_row_new(GTK_STOCK_SAVE, WIRESHARK_STOCK_DONT_SAVE, NULL);
+ break;
case(ESD_BTNS_SAVE_DONTSAVE_CANCEL):
bbox = dlg_button_row_new(GTK_STOCK_SAVE, WIRESHARK_STOCK_DONT_SAVE, GTK_STOCK_CANCEL, NULL);
break;