[Commits] [SCM] claws branch, master, updated. 3.10.1-154-gecb5946

claws at claws-mail.org claws at claws-mail.org
Fri Sep 5 10:24:55 CEST 2014


The branch, master has been updated
       via  ecb5946bbb9c2262678752c0958c4d18bf13e8b7 (commit)
      from  250094ca69c43d406027a1071cefb1f4065196af (commit)

Summary of changes:
 src/account.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit ecb5946bbb9c2262678752c0958c4d18bf13e8b7
Author: Paul <paul at claws-mail.org>
Date:   Fri Sep 5 09:24:39 2014 +0100

    disallow editing any account (even current account) when at least one compose window is open

diff --git a/src/account.c b/src/account.c
index 3c33156..2d79c41 100644
--- a/src/account.c
+++ b/src/account.c
@@ -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);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list