From: Alberto Garcia Date: Wed, 28 Nov 2007 12:28:41 +0000 (+0000) Subject: After a server has been modified in the in the connection-specific X-Git-Tag: git_migration_finished~1998 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=4481dc6d10fe6276d800ea0893d24f934b60284c After a server has been modified in the in the connection-specific SMTP window, update the treeview using the new values rather than the old values taken from the modest-account-mgr Fixes NB#77361 pmo-trunk-r3837 --- diff --git a/src/maemo/modest-connection-specific-smtp-window.c b/src/maemo/modest-connection-specific-smtp-window.c index 0529b3a..cf34b99 100644 --- a/src/maemo/modest-connection-specific-smtp-window.c +++ b/src/maemo/modest-connection-specific-smtp-window.c @@ -606,7 +606,11 @@ void update_model_server_names (ModestConnectionSpecificSmtpWindow *self) MODEL_COL_SERVER_ACCOUNT_NAME, &server_account_name, MODEL_COL_SERVER_ACCOUNT_DATA, &data, -1); - if (server_account_name) { + if (data && data->hostname && (data->hostname[0] != '\0')) { + gtk_list_store_set (GTK_LIST_STORE (priv->model), &iter, + MODEL_COL_SERVER_NAME, data->hostname, + -1); + } else if (server_account_name) { /* Get the server hostname and show it in the treemodel: */ gchar *hostname = modest_account_mgr_get_server_account_hostname (priv->account_manager, @@ -615,10 +619,6 @@ void update_model_server_names (ModestConnectionSpecificSmtpWindow *self) MODEL_COL_SERVER_NAME, hostname, -1); g_free (hostname); - } else if (data && data->hostname && (data->hostname[0] != '\0')) { - gtk_list_store_set (GTK_LIST_STORE (priv->model), &iter, - MODEL_COL_SERVER_NAME, data->hostname, - -1); } else { gtk_list_store_set (GTK_LIST_STORE (priv->model), &iter, MODEL_COL_SERVER_NAME, _("mcen_ia_optionalsmtp_notdefined"),