aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gui_prefs.c
diff options
context:
space:
mode:
authorLaurent Deniel <laurent.deniel@free.fr>2000-08-23 18:52:38 +0000
committerLaurent Deniel <laurent.deniel@free.fr>2000-08-23 18:52:38 +0000
commit30c432f7343ace75a2e5fa9d8a7e094e240c5d99 (patch)
tree59ac31d7bdc5e596ce5c215902c54b1d6022d122 /gtk/gui_prefs.c
parentfb3643b8d59bc1d7ed7aaa073288d27393224800 (diff)
downloadwireshark-30c432f7343ace75a2e5fa9d8a7e094e240c5d99.tar.gz
wireshark-30c432f7343ace75a2e5fa9d8a7e094e240c5d99.tar.bz2
wireshark-30c432f7343ace75a2e5fa9d8a7e094e240c5d99.zip
If you "save" your preferences without opening the color
selection dialog, the colors are saved with null values. So do not call fetch_colors if the colors_changed boolean is FALSE ... svn path=/trunk/; revision=2350
Diffstat (limited to 'gtk/gui_prefs.c')
-rw-r--r--gtk/gui_prefs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gui_prefs.c b/gtk/gui_prefs.c
index 30c65c4140..ca880e63f4 100644
--- a/gtk/gui_prefs.c
+++ b/gtk/gui_prefs.c
@@ -1,7 +1,7 @@
/* gui_prefs.c
* Dialog box for GUI preferences
*
- * $Id: gui_prefs.c,v 1.14 2000/08/23 16:15:13 deniel Exp $
+ * $Id: gui_prefs.c,v 1.15 2000/08/23 18:52:38 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -361,7 +361,8 @@ gui_prefs_fetch(GtkWidget *w)
gtk_object_get_data(GTK_OBJECT(w), PTREE_EXPANDER_STYLE_KEY),
expander_style_vals);
- fetch_colors();
+ if (colors_changed)
+ fetch_colors();
}
void