[tracker/needle] tracker-needle: Show 'no-results' page if criteria is empty



commit 8bc2fc98ea1470962c315fd748c381f499b189b4
Author: Martyn Russell <martyn lanedo com>
Date:   Fri Nov 19 14:08:02 2010 +0000

    tracker-needle: Show 'no-results' page if criteria is empty

 src/tracker-needle/tracker-needle.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-needle/tracker-needle.vala b/src/tracker-needle/tracker-needle.vala
index 1d9dd1c..3692cfb 100644
--- a/src/tracker-needle/tracker-needle.vala
+++ b/src/tracker-needle/tracker-needle.vala
@@ -548,6 +548,8 @@ public class Tracker.Needle {
 		string criteria = str.strip ();
 
 		if (criteria.length < 1) {
+			store.clear ();
+
 			search_finished ();
 
 			return false;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]