summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2019-04-04 23:04:44 +0200
committerAndras Timar <andras.timar@collabora.com>2019-04-05 08:28:50 +0200
commit5d0700bd3afef6d39b63fe813aaa0ac856ff5785 (patch)
treee4d87d9201795c0cd6c149f17571fa5363038c51
parent56971d434bf2242e436f6d671221fa80d1d2895a (diff)
respect read-only config item: AutoFunction/Text/ShowToolTip
Change-Id: Ib808e35d3cc3c2895993193ac6ed05d556c1857d Reviewed-on: https://gerrit.libreoffice.org/70275 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--sw/source/ui/misc/glossary.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index cd3853f38f64..ce5dee06b6ff 100644
--- a/sw/source/ui/misc/glossary.cxx
+++ b/sw/source/ui/misc/glossary.cxx
@@ -73,6 +73,8 @@
#include <strings.hrc>
#include <iodetect.hxx>
+#include <officecfg/Office/Writer.hxx>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::uno;
@@ -770,6 +772,7 @@ void SwGlossaryDlg::Init()
m_pNetRelCB->Check( rCfg.IsSaveRelNet() );
m_pNetRelCB->SetClickHdl(LINK(this, SwGlossaryDlg, CheckBoxHdl));
m_pInsertTipCB->Check( rCfg.IsAutoTextTip() );
+ m_pInsertTipCB->Enable(!officecfg::Office::Writer::AutoFunction::Text::ShowToolTip::isReadOnly());
m_pInsertTipCB->SetClickHdl(LINK(this, SwGlossaryDlg, CheckBoxHdl));
}