]> spindle.queued.net Git - midori/commitdiff
Only print error if completion actually failed
authorChristian Dywan <christian@twotoasts.de>
Thu, 18 Mar 2010 22:26:45 +0000 (23:26 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 18 Mar 2010 22:26:45 +0000 (23:26 +0100)
midori/midori-locationaction.c

index 87eb568992c025ca14921f3a9f9713787d30d484..724b5e1472809c134feade46ecbe318195811080 100644 (file)
@@ -373,7 +373,8 @@ midori_location_action_popup_timeout_cb (gpointer data)
     result = sqlite3_step (stmt);
     if (result != SQLITE_ROW && !action->search_engines)
     {
-        g_print (_("Failed to select from history\n"));
+        if (result == SQLITE_ERROR)
+            g_print (_("Failed to select from history\n"));
         sqlite3_reset (stmt);
         sqlite3_clear_bindings (stmt);
         midori_location_action_popdown_completion (action);