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,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);