Only print error if completion actually failed

This commit is contained in:
Christian Dywan 2010-03-18 23:26:45 +01:00
parent 2622291196
commit b4a18b2aef

View file

@ -373,6 +373,7 @@ midori_location_action_popup_timeout_cb (gpointer data)
result = sqlite3_step (stmt); result = sqlite3_step (stmt);
if (result != SQLITE_ROW && !action->search_engines) if (result != SQLITE_ROW && !action->search_engines)
{ {
if (result == SQLITE_ERROR)
g_print (_("Failed to select from history\n")); g_print (_("Failed to select from history\n"));
sqlite3_reset (stmt); sqlite3_reset (stmt);
sqlite3_clear_bindings (stmt); sqlite3_clear_bindings (stmt);