Kaydet (Commit) 4dba49c9 authored tarafından Rtch90's avatar Rtch90 Kaydeden (comit) Katarina Behrens

tdf#124893 Validity check on new dialog creation.

Change-Id: I5f94c8204a4c35470e891eb89cfbe74aad852bf4
Reviewed-on: https://gerrit.libreoffice.org/71084
Tested-by: Jenkins
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst 219be458
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment