From: Christian Dywan Date: Mon, 8 Feb 2010 22:13:35 +0000 (+0100) Subject: Only read history into History panel if an array is given X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d722f6294d1d1274712f51d7c52b908330852ed;p=midori Only read history into History panel if an array is given --- diff --git a/panels/midori-history.c b/panels/midori-history.c index 96cfe70b..0d6c186e 100644 --- a/panels/midori-history.c +++ b/panels/midori-history.c @@ -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 }