diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-11-04 20:33:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-11-04 20:33:13 +0000 |
commit | 7089251f68cc1c8c3bdf2e8df517e208f273d831 (patch) | |
tree | f3ee9e9319232e605dc1ec89f945e708a676cb31 /gtk/prefs_dlg.c | |
parent | 343a178e33dac90b5ea167be8ac2e1cda48b908f (diff) |
Skip the check for the module if a page doesn't have a module.
svn path=/trunk/; revision=8881
Diffstat (limited to 'gtk/prefs_dlg.c')
-rw-r--r-- | gtk/prefs_dlg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/prefs_dlg.c b/gtk/prefs_dlg.c index 646b53a417..43a3fcc1aa 100644 --- a/gtk/prefs_dlg.c +++ b/gtk/prefs_dlg.c @@ -1,7 +1,7 @@ /* prefs_dlg.c * Routines for handling preferences * - * $Id: prefs_dlg.c,v 1.64 2003/11/04 20:22:21 guy Exp $ + * $Id: prefs_dlg.c,v 1.65 2003/11/04 20:33:13 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1341,6 +1341,8 @@ properties_cb(GtkWidget *w, gpointer dummy) page_num++) { /* Get the module for this page. */ page_module = OBJECT_GET_DATA(frame, E_PAGE_MODULE_KEY); + if (page_module == NULL) + continue; /* It doesn't have one. */ if (page_module == p.module) { /* We found it. Select that page. */ gtk_notebook_set_page(GTK_NOTEBOOK(notebook), page_num); |