projects
/
moonshot-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5229a99
)
Fix filter condition for empty/null string
author
Alberto Ruiz
<aruiz@gnome.org>
Tue, 19 Jul 2011 10:28:09 +0000
(11:28 +0100)
committer
Alberto Ruiz
<aruiz@gnome.org>
Tue, 19 Jul 2011 16:33:49 +0000
(17:33 +0100)
src/moonshot-window.vala
patch
|
blob
|
history
diff --git
a/src/moonshot-window.vala
b/src/moonshot-window.vala
index
565198b
..
fefa091
100644
(file)
--- a/
src/moonshot-window.vala
+++ b/
src/moonshot-window.vala
@@
-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(" "))
{