[Xfce4-commits] <postler:master> Don't allow selecting the "No results" message
Christian Dywan
noreply at xfce.org
Sun Feb 27 04:22:01 CET 2011
Updating branch refs/heads/master
to f416c64270eb9d222f014895207d714fe6539ba9 (commit)
from bc0d36e27448b544a3743c4269c3d3bb01f68e2f (commit)
commit f416c64270eb9d222f014895207d714fe6539ba9
Author: Sergio Spinatelli <spinatelli.sergio at gmail.com>
Date: Sat Feb 26 22:17:48 2011 +0100
Don't allow selecting the "No results" message
Fixes: https://bugs.launchpad.net/postler/+bug/725690
postler/postler-messages.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index d667511..a5b62f9 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -736,7 +736,10 @@ public class Postler.Messages : Gtk.TreeView {
if (filters[0] != null && n_messages == 0) {
display_error (_("No messages found"),
_("Check the spelling or try a different filter."));
+ get_selection().set_select_function( () => { return false; });
return false;
+ } else {
+ get_selection().set_select_function( () => { return true; });
}
sort = new Gtk.TreeModelSort.with_model (store);
More information about the Xfce4-commits
mailing list