[Xfce4-commits] <postler:master> Check that we have any filters to show 'No messages'

Christian Dywan noreply at xfce.org
Sat Jan 15 00:52:02 CET 2011


Updating branch refs/heads/master
         to 7e2d4628292f054cfd5a35b38056d80fa3924dd4 (commit)
       from 59e494f6ad950f3c08e4217e5563fc79d3bf2154 (commit)

commit 7e2d4628292f054cfd5a35b38056d80fa3924dd4
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Jan 15 00:52:37 2011 +0100

    Check that we have any filters to show 'No messages'
    
    It may not be a saved search but simply searched in a folder.

 postler/postler-messages.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index d356820..238af65 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -749,7 +749,7 @@ public class Postler.Messages : Gtk.TreeView {
 
             /* Show error for failed search, ie. no results */
             int n_messages = store.iter_n_children (null);
-            if (location.has_prefix ("search:") && n_messages == 0) {
+            if (filters[0] != null && n_messages == 0) {
                 display_error (_("No messages found"),
                     _("Check the spelling or try a different filter."));
                 return false;



More information about the Xfce4-commits mailing list