[Xfce4-commits] <postler:master> Fix saving content of the advanced section in account setup

Christian Dywan noreply at xfce.org
Fri Apr 8 00:22:01 CEST 2011


Updating branch refs/heads/master
         to 1282df6731e314220cb0105d300fc36e5711b1e3 (commit)
       from 65bf2c2591620d5d768f8b8cbe198c59b677b883 (commit)

commit 1282df6731e314220cb0105d300fc36e5711b1e3
Author: Sergio Spinatelli <spinatelli.sergio at gmail.com>
Date:   Thu Mar 24 23:08:29 2011 +0100

    Fix saving content of the advanced section in account setup
    
    Fixes: https://bugs.launchpad.net/postler/+bug/730204
    
    Fixes: https://bugs.launchpad.net/postler/+bug/741951

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

diff --git a/postler/postler-accountsetup.vala b/postler/postler-accountsetup.vala
index 46617ce..680c60e 100644
--- a/postler/postler-accountsetup.vala
+++ b/postler/postler-accountsetup.vala
@@ -159,15 +159,14 @@ public class Postler.AccountWidget : Gtk.VBox {
         add_label_entry (_("Sen_ding Port:"), sender_port, true);
         advanced_area.pack_start (new Gtk.Label (
             _("STARTTLS is used by default, use port 465 for secure SMTP.")), false, false, 4);
-        if (info.address != null)
-            set_servers_from_address ();
         content_area.show_all ();
         pack_end (content_area, true, true, 0);
     }
 
     bool on_focus_out () {
         address_changed = (info.address != address.get_text () || address_changed);
-        set_servers_from_address ();
+        if (address_changed)
+            set_servers_from_address ();
         return false;
     }
 
@@ -234,8 +233,6 @@ 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