Fix crash on adding new panel.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sat, 26 Jul 2014 21:27:54 +0000 (00:27 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sat, 26 Jul 2014 21:27:54 +0000 (00:27 +0300)
src/configurator.c

index c89e08a..27ff274 100644 (file)
@@ -562,7 +562,7 @@ static void init_plugin_list( Panel* p, GtkTreeView* view, GtkWidget* label )
     gtk_tree_view_append_column( view, col );
 
     list = gtk_list_store_new( N_COLS, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_POINTER );
-    plugins = gtk_container_get_children(GTK_CONTAINER(p->box));
+    plugins = p->box ? gtk_container_get_children(GTK_CONTAINER(p->box)) : NULL;
     for( l = plugins; l; l = l->next )
     {
         GtkTreeIter it;