Blame SOURCES/0006-tdf-137897-scRetypePassInputDlg-re-allow-password-re.patch

eac0b7
From 81618bd69088436eb60fd07b944effb178d788ae Mon Sep 17 00:00:00 2001
eac0b7
From: Justin Luth <justin.luth@collabora.com>
eac0b7
Date: Sat, 31 Oct 2020 15:36:44 +0300
eac0b7
Subject: [PATCH 6/8] tdf#137897 scRetypePassInputDlg: re-allow password
eac0b7
 removal
eac0b7
MIME-Version: 1.0
eac0b7
Content-Type: text/plain; charset=UTF-8
eac0b7
Content-Transfer-Encoding: 8bit
eac0b7
eac0b7
This weld-conversion logic error caused a LO 6.1 regression
eac0b7
in commit 0e4f93e88bfae3489d2de84fc2febed100880628.
eac0b7
eac0b7
-   m_pPasswordGrid->Disable();
eac0b7
+   m_xPasswordGrid->set_sensitive(false);  //disable == false
eac0b7
-   m_pBtnOk->Enable();
eac0b7
+   m_xBtnOk->set_sensitive(false);         //enable == true
eac0b7
eac0b7
The result is that attempting to remove the password did not
eac0b7
enable the OK button, so it was impossible.
eac0b7
eac0b7
Change-Id: I4067b2ec6b89e86b21968d33c8850cca6d067e71
eac0b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105049
eac0b7
Tested-by: Jenkins
eac0b7
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
eac0b7
(cherry picked from commit 9eeaff5fa9070bea685db8b6bbd2dfc1565756ac)
eac0b7
---
eac0b7
 sc/source/ui/miscdlgs/retypepassdlg.cxx | 2 +-
eac0b7
 1 file changed, 1 insertion(+), 1 deletion(-)
eac0b7
eac0b7
diff --git a/sc/source/ui/miscdlgs/retypepassdlg.cxx b/sc/source/ui/miscdlgs/retypepassdlg.cxx
eac0b7
index 84f8ef182b54..fa31ea77e392 100644
eac0b7
--- a/sc/source/ui/miscdlgs/retypepassdlg.cxx
eac0b7
+++ b/sc/source/ui/miscdlgs/retypepassdlg.cxx
eac0b7
@@ -372,7 +372,7 @@ IMPL_LINK_NOARG(ScRetypePassInputDlg, RadioBtnHdl, weld::ToggleButton&, void)
eac0b7
     else
eac0b7
     {
eac0b7
         m_xPasswordGrid->set_sensitive(false);
eac0b7
-        m_xBtnOk->set_sensitive(false);
eac0b7
+        m_xBtnOk->set_sensitive(true);
eac0b7
     }
eac0b7
 }
eac0b7
 
eac0b7
-- 
eac0b7
2.28.0
eac0b7