disallow editing any account (even current account) when at least one compose window...
authorPaul <paul@claws-mail.org>
Fri, 5 Sep 2014 08:24:39 +0000 (09:24 +0100)
committerPaul <paul@claws-mail.org>
Fri, 5 Sep 2014 08:24:39 +0000 (09:24 +0100)
src/account.c

index 3c3315686a93cc5ef1a44303f4042e2cb63069e6..2d79c41423fd9861829f142d32759bc3cd671780 100644 (file)
@@ -391,7 +391,7 @@ void account_edit_open(gpointer a, gpointer b)
        if (compose_get_compose_list()) {
                alertpanel_error(_("Some composing windows are open.\n"
                                   "Please close all the composing "
-                                  "windows before editing the accounts."));
+                                  "windows before editing accounts."));
                inc_unlock();
                return;
        }
@@ -455,6 +455,13 @@ void account_open(PrefsAccount *ac_prefs)
 
        cm_return_if_fail(ac_prefs != NULL);
 
+       if (compose_get_compose_list()) {
+               alertpanel_error(_("Some composing windows are open.\n"
+                                  "Please close all the composing "
+                                  "windows before editing accounts."));
+               return;
+       }
+
        prev_default = ac_prefs->is_default;
        Xstrdup_a(ac_name, ac_prefs->account_name ? ac_prefs->account_name : "",
                  return);