Code review: unchecked return value of modest_ui_actions_run_account_wizard.
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 31 Mar 2009 11:57:01 +0000 (11:57 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 31 Mar 2009 11:57:01 +0000 (11:57 +0000)
pmo-trunk-r8487

src/modest-ui-actions.c

index 417a11e..ea59e96 100644 (file)
@@ -729,7 +729,9 @@ void
 modest_ui_actions_on_new_account (GtkAction *action,
                                  ModestWindow *window)
 {
-       modest_ui_actions_run_account_setup_wizard (window);
+       if (!modest_ui_actions_run_account_setup_wizard (window)) {
+               g_debug ("%s: wizard was already running", __FUNCTION__);
+       }
 }
 
 void