[Libreoffice-commits] core.git: sw/source
Andras Timar (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 5 06:29:20 UTC 2019
sw/source/ui/misc/glossary.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 5d0700bd3afef6d39b63fe813aaa0ac856ff5785
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Thu Apr 4 23:04:44 2019 +0200
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Fri Apr 5 08:28:50 2019 +0200
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 at collabora.com>
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));
}
More information about the Libreoffice-commits
mailing list