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

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