* Fixes NB#83439, auto-show the account setup wizard when trying to open a draft...
authorSergio Villar Senin <svillar@igalia.com>
Tue, 1 Apr 2008 10:54:13 +0000 (10:54 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 1 Apr 2008 10:54:13 +0000 (10:54 +0000)
pmo-trunk-r4359

src/modest-ui-actions.c

index 9290abe..f77a6b0 100644 (file)
@@ -916,9 +916,12 @@ open_msg_cb (ModestMailOperation *mail_op,
 
                /* we cannot edit without a valid account... */
                if (!modest_account_mgr_has_accounts(mgr, TRUE)) {
-                       if (!modest_ui_actions_run_account_setup_wizard(parent_win))
+                       if (!modest_ui_actions_run_account_setup_wizard(parent_win)) {
+                               modest_window_mgr_unregister_header (modest_runtime_get_window_mgr (), 
+                                                                    header);
                                g_free (from_header);
                                goto cleanup;
+                       }
                }
                
                if (from_header) {