Do not add inputbox observers if hint will be fired.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 22 Dec 2012 23:43:15 +0000 (00:43 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 22 Dec 2012 23:43:15 +0000 (00:43 +0100)
src/hints.c

index 8e9b9c1..8f81cdb 100644 (file)
@@ -128,10 +128,10 @@ void hints_create(const gchar* input, guint mode, const guint prefixLength)
     if (g_list_length(hints->list) == 1) {
         /* only one element hinted - we can fire it */
         hints_fire(1);
+    } else {
+        /* add event hanlder for inputbox */
+        hints_observe_input(TRUE);
     }
-
-    /* add event hanlder for inputbox */
-    hints_observe_input(TRUE);
 }
 
 void hints_update(const gulong num)