From e2ce8ae7b9f84d1862b3dd95e4d4e7b27a70b752 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 5 Aug 2020 23:41:29 +0200 Subject: Revert "tdf#130863: autoredact, disable useless checkboxes for regex" This reverts commit b53fbe19dfd39d27868d616afb4f743b1237229b. See details here: https://bugs.documentfoundation.org/show_bug.cgi?id=130863#c26 Change-Id: I431094784106c9aad2a11b37b5ea849ba924b60f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100191 Tested-by: Julien Nabet Reviewed-by: Julien Nabet (cherry picked from commit f615a3366e502884a15bbbf07c2fb1e70eb9dbfa) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100210 Reviewed-by: Eike Rathke Tested-by: Jenkins --- sfx2/source/doc/autoredactdialog.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/sfx2/source/doc/autoredactdialog.cxx b/sfx2/source/doc/autoredactdialog.cxx index 868fc73cc538..19d1923b21ac 100644 --- a/sfx2/source/doc/autoredactdialog.cxx +++ b/sfx2/source/doc/autoredactdialog.cxx @@ -695,18 +695,10 @@ IMPL_LINK_NOARG(SfxAddTargetDialog, SelectTypeHdl, weld::ComboBox&, void) m_xLabelContent->set_visible(true); m_xContent->set_sensitive(true); m_xContent->set_visible(true); + m_xWholeWords->set_sensitive(true); m_xWholeWords->set_visible(true); + m_xCaseSensitive->set_sensitive(true); m_xCaseSensitive->set_visible(true); - if (m_xType->get_active_id() == "regex") - { - m_xWholeWords->set_sensitive(false); - m_xCaseSensitive->set_sensitive(false); - } - else - { - m_xWholeWords->set_sensitive(true); - m_xCaseSensitive->set_sensitive(true); - } } } -- cgit