* Fixes NB#106340, show some progress while inserting images in a message editor
[modest] / src / maemo / modest-connection-specific-smtp-window.c
index 3f98ded..f1dbb95 100644 (file)
@@ -208,8 +208,9 @@ modest_connection_specific_smtp_window_fill_with_connections (ModestConnectionSp
                                MODEL_COL_NAME, connection_name,
                                MODEL_COL_SERVER_ACCOUNT_NAME, server_account_name,
                                -1);
-                               
-                       g_free (server_account_name);
+
+                       if (server_account_name)                                
+                               g_free (server_account_name);
                }
                
                iter = g_slist_next (iter);     
@@ -267,7 +268,9 @@ on_button_edit (ModestConnectionSpecificSmtpWindow *self)
                        server_settings = NULL;
                }
                        
-               modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), GTK_WINDOW (window));
+               modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), 
+                                            GTK_WINDOW (window),
+                                            GTK_WINDOW (self));
                
                gint response = gtk_dialog_run (GTK_DIALOG (window));
                if (response == GTK_RESPONSE_OK) {