[Xfce4-commits] <midori:master> Only print error if completion actually failed

Christian Dywan noreply at xfce.org
Thu Mar 18 23:28:01 CET 2010


Updating branch refs/heads/master
         to b4a18b2aef4d5be2ff84d4ee08262ff4021c6069 (commit)
       from 2622291196c1fdff1cd56471d4bbd72ea37d7d2a (commit)

commit b4a18b2aef4d5be2ff84d4ee08262ff4021c6069
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Mar 18 23:26:45 2010 +0100

    Only print error if completion actually failed

 midori/midori-locationaction.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 87eb568..724b5e1 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);



More information about the Xfce4-commits mailing list