From: Christian Dywan Date: Thu, 18 Mar 2010 22:26:45 +0000 (+0100) Subject: Only print error if completion actually failed X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4a18b2aef4d5be2ff84d4ee08262ff4021c6069;p=midori Only print error if completion actually failed --- diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index 87eb5689..724b5e14 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -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);