aboutsummaryrefslogtreecommitdiff
path: root/src/displaywindow.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-02-21 23:45:06 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:15 +0100
commit03276838678866c187f368958f00cbc22573bce3 (patch)
treeed902598c173864521898d10aae57b20ebf75a47 /src/displaywindow.c
parentb6a0d7a568aa01ff79b7197f454d6438ceb32cf0 (diff)
Fix and remove menu debug
Diffstat (limited to 'src/displaywindow.c')
-rw-r--r--src/displaywindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c
index b05c7251..03dabe94 100644
--- a/src/displaywindow.c
+++ b/src/displaywindow.c
@@ -931,8 +931,8 @@ static GtkWidget *displaywindow_addhdfgroup(struct hdfile *hdfile,
G_CALLBACK(displaywindow_newhdf), nh);
}
- STATUS("'%s' '%s'\n", names[i], selectme);
- if ( strcmp(names[i], selectme) == 0 ) {
+ if ( (selectme != NULL)
+ && (strcmp(names[i], selectme) == 0) ) {
gtk_check_menu_item_set_active(
GTK_CHECK_MENU_ITEM(item), TRUE);
} else {