[Xfce4-commits] <postler:master> Fix server entries in accountsetup

Christian Dywan noreply at xfce.org
Thu Feb 17 21:08:01 CET 2011


Updating branch refs/heads/master
         to 0e2f4e7b6de4f4e9f99acad5c6dac811c464fdc3 (commit)
       from e98d6fc0ae92bee6bd5ea9cfd35cd98a4ff07302 (commit)

commit 0e2f4e7b6de4f4e9f99acad5c6dac811c464fdc3
Author: Sergio Spinatelli <spinatelli.sergio at gmail.com>
Date:   Thu Feb 17 19:12:00 2011 +0100

    Fix server entries in accountsetup

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

diff --git a/postler/postler-accountsetup.vala b/postler/postler-accountsetup.vala
index 6e5f52b..91d8d44 100644
--- a/postler/postler-accountsetup.vala
+++ b/postler/postler-accountsetup.vala
@@ -149,8 +149,10 @@ public class Postler.AccountWidget : Gtk.VBox {
 
         string user = domain.split ("@") [0];
         domain = domain.split ("@") [1];
-        receiver.set_text ("imap." + domain);
-        sender.set_text ("smtp." + domain);
+        if (receiver.get_text () == "")
+            receiver.set_text ("imap." + domain);
+        if (sender.get_text () == "")
+            sender.set_text ("smtp." + domain);
         username.set_text (user);
     }
 



More information about the Xfce4-commits mailing list