Fix filter condition for empty/null string
authorAlberto Ruiz <aruiz@gnome.org>
Tue, 19 Jul 2011 10:28:09 +0000 (11:28 +0100)
committerAlberto Ruiz <aruiz@gnome.org>
Tue, 19 Jul 2011 16:33:49 +0000 (17:33 +0100)
src/moonshot-window.vala

index 565198b..fefa091 100644 (file)
@@ -86,8 +86,11 @@ class MainWindow : Window
         }
         
         string entry_text = search_entry.get_text ();
-        if (entry_text == null && entry_text == "")
+        if (entry_text == null || entry_text == "")
+        {
+            debug (entry_text);
             return true;
+        }
 
         foreach (string search_text in entry_text.split(" "))
         {