talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 3dfc764e34a658e911674ad4a0a1ab1bab60e5d7
parent 126c9d80cee8f0f7f4559115f26f9891bd966d67
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Wed, 10 Feb 2016 18:31:25 +0100

Fix a logic error in handling results of master password change dialog.

Diffstat:
Msrc/prefs_other.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/prefs_other.c b/src/prefs_other.c @@ -722,6 +722,13 @@ static void prefs_other_save(PrefsPage *_page) GTK_TOGGLE_BUTTON(page->checkbtn_use_password)) && !master_password_is_set()) { master_password_change_dialog(); + + /* In case user cancelled the password change dialog, we need + * to disable the "use master password" checkbox. */ + if (!master_password_is_set()) { + gtk_toggle_button_set_active( + GTK_TOGGLE_BUTTON(page->checkbtn_use_password), FALSE); + } } prefs_common.use_master_password =