X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-connection-specific-smtp-window.c;h=685e63003b389090fd96b41cf56c9c56ab6f12de;hp=4b95597d697329d38b6990559418f70f4f8862b7;hb=827e1886270816c632c05f804891a56924915229;hpb=dfd322a4731d53c0de56278bdebc867f55eedfc2 diff --git a/src/hildon2/modest-connection-specific-smtp-window.c b/src/hildon2/modest-connection-specific-smtp-window.c index 4b95597..685e630 100644 --- a/src/hildon2/modest-connection-specific-smtp-window.c +++ b/src/hildon2/modest-connection-specific-smtp-window.c @@ -200,16 +200,17 @@ modest_connection_specific_smtp_window_fill_with_connections (ModestConnectionSp server_account_name = modest_account_mgr_get_connection_specific_smtp ( priv->account_manager, connection_id); - /* Add the row to the model: */ - GtkTreeIter iter; - gtk_list_store_append (liststore, &iter); - gtk_list_store_set(liststore, &iter, - MODEL_COL_ID, connection_id, - MODEL_COL_NAME, connection_name, - MODEL_COL_SERVER_ACCOUNT_NAME, server_account_name, - -1); - - g_free (server_account_name); + if (server_account_name) { + /* Add the row to the model: */ + GtkTreeIter iter; + gtk_list_store_append (liststore, &iter); + gtk_list_store_set(liststore, &iter, + MODEL_COL_ID, connection_id, + MODEL_COL_NAME, connection_name, + MODEL_COL_SERVER_ACCOUNT_NAME, server_account_name, + -1); + g_free (server_account_name); + } } iter = g_slist_next (iter);