summaryrefslogtreecommitdiff
path: root/cui/source/options
diff options
context:
space:
mode:
authorRtch90 <ritchie.cunningham@protonmail.com>2019-04-23 01:56:38 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2019-04-24 10:43:03 +0200
commit4dba49c9f92de40c3935f1778cf301030db08343 (patch)
tree267120370daed5fee6da383a2c7eff251486da4a /cui/source/options
parent219be4581adc26189f863d62735ee10e8a7c31c9 (diff)
tdf#124893 Validity check on new dialog creation.
Change-Id: I5f94c8204a4c35470e891eb89cfbe74aad852bf4 Reviewed-on: https://gerrit.libreoffice.org/71084 Tested-by: Jenkins Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'cui/source/options')
-rw-r--r--cui/source/options/optdict.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx
index fb0a329fe020..ab4711eb1a2f 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -100,6 +100,9 @@ SvxNewDictionaryDialog::SvxNewDictionaryDialog(weld::Window* pParent)
, m_xExceptBtn(m_xBuilder->weld_check_button("except"))
, m_xOKBtn(m_xBuilder->weld_button("ok"))
{
+ // Prevent creation of dictionary without a name.
+ m_xOKBtn->set_sensitive(false);
+
// install handler
m_xNameEdit->connect_changed(LINK(this, SvxNewDictionaryDialog, ModifyHdl_Impl));
m_xOKBtn->connect_clicked(LINK(this, SvxNewDictionaryDialog, OKHdl_Impl));