From ecb5946bbb9c2262678752c0958c4d18bf13e8b7 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 5 Sep 2014 09:24:39 +0100 Subject: [PATCH 1/1] disallow editing any account (even current account) when at least one compose window is open --- src/account.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/account.c b/src/account.c index 3c3315686..2d79c4142 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); -- 2.25.1