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
MODEL_COL_SERVER_ACCOUNT_NAME, &server_account_name,
MODEL_COL_SERVER_ACCOUNT_DATA, &data,
-1);
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,
/* Get the server hostname and show it in the treemodel: */
gchar *hostname = modest_account_mgr_get_server_account_hostname (priv->account_manager,
MODEL_COL_SERVER_NAME, hostname,
-1);
g_free (hostname);
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"),
} else {
gtk_list_store_set (GTK_LIST_STORE (priv->model), &iter,
MODEL_COL_SERVER_NAME, _("mcen_ia_optionalsmtp_notdefined"),