]> spindle.queued.net Git - midori/commitdiff
Only read history into History panel if an array is given
authorChristian Dywan <christian@twotoasts.de>
Mon, 8 Feb 2010 22:13:35 +0000 (23:13 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 10 Feb 2010 18:52:11 +0000 (19:52 +0100)
panels/midori-history.c

index 96cfe70b6c941b8eb1275582529b5c53b207ddee..0d6c186ed7249804f00a9899385af87fc717dc71 100644 (file)
@@ -498,7 +498,8 @@ midori_history_set_app (MidoriHistory* history,
     history->array = katze_object_get_object (app, "history");
     model = gtk_tree_view_get_model (GTK_TREE_VIEW (history->treeview));
     #if HAVE_SQLITE
-    midori_history_read_from_db (history, GTK_TREE_STORE (model), NULL, 0, NULL);
+    if (history->array)
+        midori_history_read_from_db (history, GTK_TREE_STORE (model), NULL, 0, NULL);
     #endif
 }