[Xfce4-commits] <postler:master> Handle null location when updating message actions
Christian Dywan
noreply at xfce.org
Fri Dec 31 00:52:04 CET 2010
Updating branch refs/heads/master
to 9a882251f9e7dedd76367b27be28ec6fc6e0af57 (commit)
from 8828bb6703e2c0a8a778726ae48841cab20454a7 (commit)
commit 9a882251f9e7dedd76367b27be28ec6fc6e0af57
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Dec 30 16:48:33 2010 +0100
Handle null location when updating message actions
postler/postler-bureau.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index 715c53d..69d9a72 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -607,7 +607,7 @@ public class Postler.Bureau : Gtk.Window {
Postler.Messages messages = object as Postler.Messages;
bool state = messages.selected_location != null;
actions.get_action ("MessageFlag").sensitive = state;
- string folder = Path.get_basename (folders.selected_location);
+ string folder = Path.get_basename (folders.selected_location ?? "");
actions.get_action ("MessageArchive").sensitive = state
&& folder != messages.account_info.get_folder (FolderType.ARCHIVE);
var action = actions.get_action ("MessageJunk");
More information about the Xfce4-commits
mailing list