diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-07-22 15:42:29 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2020-07-22 18:56:31 +0200 |
commit | b53fbe19dfd39d27868d616afb4f743b1237229b (patch) | |
tree | e80beca8d4f9974cad2a25386ec9754a3ffc9135 /sfx2/source/doc/autoredactdialog.cxx | |
parent | 8a5aba03e1a1073f55f90e795f9cdc3b3fd6c840 (diff) |
tdf#130863: autoredact, disable useless checkboxes for regex
Change-Id: Ic2bebfb24b8630c6135500a872eb6d6dee7935f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99227
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sfx2/source/doc/autoredactdialog.cxx')
-rw-r--r-- | sfx2/source/doc/autoredactdialog.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sfx2/source/doc/autoredactdialog.cxx b/sfx2/source/doc/autoredactdialog.cxx index 95780bde8320..d95b44169eef 100644 --- a/sfx2/source/doc/autoredactdialog.cxx +++ b/sfx2/source/doc/autoredactdialog.cxx @@ -695,10 +695,18 @@ 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); + } } } |