Fix regular expression used to check domain names.
[modest] / src / modest-ui-actions.c
index 369e4be..e2b1e71 100644 (file)
@@ -2403,10 +2403,6 @@ modest_ui_actions_on_send (GtkWidget *widget, ModestMsgEditWindow *edit_window)
        }
        
        /* Get the currently-active transport account for this modest account: */
-/*     TnyTransportAccount *transport_account = */
-/*             TNY_TRANSPORT_ACCOUNT(modest_tny_account_store_get_transport_account_for_open_connection */
-/*                                   (modest_runtime_get_account_store(), */
-/*                                    account_name)); */
        if (strcmp (account_name, MODEST_LOCAL_FOLDERS_ACCOUNT_ID) != 0) {
                transport_account = TNY_TRANSPORT_ACCOUNT(modest_tny_account_store_get_server_account
                                                          (modest_runtime_get_account_store(),
@@ -2995,7 +2991,7 @@ modest_ui_actions_on_password_requested (TnyAccountStore *account_store,
                                              NULL);
 #endif /* MODEST_PLATFORM_MAEMO */
 
-       gtk_window_set_transient_for (GTK_WINDOW(dialog), GTK_WINDOW(main_window));
+       modest_window_mgr_set_modal (modest_runtime_get_window_mgr(), GTK_WINDOW (dialog));
        
        gchar *server_name = modest_account_mgr_get_server_account_hostname (
                modest_runtime_get_account_mgr(), server_account_name);