[Xfce4-commits] <postler:master> selected_address must return "" if the info has none

Christian Dywan noreply at xfce.org
Wed Jan 26 20:16:01 CET 2011


Updating branch refs/heads/master
         to 43aa9096df404c8187e088a24b1a78cc89f9aba5 (commit)
       from c6a5a8f58f63f99f8feb0313414aaabdba6d6ff1 (commit)

commit 43aa9096df404c8187e088a24b1a78cc89f9aba5
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jan 26 20:06:20 2011 +0100

    selected_address must return "" if the info has none
    
    Saved searches have no address.

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

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index dfff72c..101d61b 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -592,7 +592,7 @@ public class Postler.Content : WebKit.WebView {
     }
 
     string selected_address () {
-        return selected_account != null ? selected_account.address : "";
+        return selected_account != null ? (selected_account.address ?? "") : "";
     }
 
     public string? choose_from () {



More information about the Xfce4-commits mailing list