[Xfce4-commits] <postler:master> Only set default username if it's empty

Christian Dywan noreply at xfce.org
Mon Feb 28 00:06:01 CET 2011


Updating branch refs/heads/master
         to b5c6f8ff3a2c4afe1390815829bab96ae79ca4bf (commit)
       from 0d91fd769c966602b68470d6ebf99dc6d6f4626b (commit)

commit b5c6f8ff3a2c4afe1390815829bab96ae79ca4bf
Author: Sergio Spinatelli <spinatelli.sergio at gmail.com>
Date:   Mon Feb 28 00:03:19 2011 +0100

    Only set default username if it's empty
    
    Fixes: https://bugs.launchpad.net/postler/+bug/725758

 postler/postler-accountsetup.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/postler/postler-accountsetup.vala b/postler/postler-accountsetup.vala
index 39f5e08..b042a84 100644
--- a/postler/postler-accountsetup.vala
+++ b/postler/postler-accountsetup.vala
@@ -159,7 +159,8 @@ public class Postler.AccountWidget : Gtk.VBox {
             receiver.set_text ("imap." + domain);
         if (sender.get_text () == "")
             sender.set_text ("smtp." + domain);
-        username.set_text (user);
+        if (username.get_text () == "")
+            username.set_text (user);
     }
 
     void add_label_entry (string text, Gtk.Widget widget, bool advanced=false) {
@@ -210,6 +211,8 @@ public class Postler.AccountWidget : Gtk.VBox {
         info.realname = realname.get_text ();
         info.address = address.get_text ();
         info.password = password.get_text ();
+        if (info.address != null)
+            set_servers_from_address ();
 
         info.organization = organization.get_text () != "" ? organization.get_text () : null;
         info.signature = signature.buffer.text != "" ? signature.buffer.text : null;



More information about the Xfce4-commits mailing list