deskbar-applet r2625 - in trunk: . deskbar/core



Author: sebp
Date: Sun Mar 22 12:24:26 2009
New Revision: 2625
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2625&view=rev

Log:
Fixed bug #552843: if the search has no result, the result list is not blanked (patch by Omair Majid)

Modified:
   trunk/ChangeLog
   trunk/deskbar/core/CoreImpl.py

Modified: trunk/deskbar/core/CoreImpl.py
==============================================================================
--- trunk/deskbar/core/CoreImpl.py	(original)
+++ trunk/deskbar/core/CoreImpl.py	Sun Mar 22 12:24:26 2009
@@ -380,7 +380,7 @@
         self.update_modules_priority(enabled_modules)
             
     def forward_query_ready(self, handler, query, matches):
-        if query == self._last_query and matches != None and len(matches) > 0 and not self._stop_queries:
+        if query == self._last_query and matches != None and not self._stop_queries:
             for match in matches:
                 if not isinstance(match, deskbar.interfaces.Match):
                     raise TypeError("Handler %r returned an invalid match: %r", handler,  match)



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