[Libreoffice-commits] core.git: sfx2/source
Heiko Tietze (via logerrit)
logerrit at kemper.freedesktop.org
Sat Feb 27 11:05:38 UTC 2021
sfx2/source/doc/templatedlg.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 63b0565ad137e5d81932f1fabba732ba40f6cb70
Author: Heiko Tietze <tietze.heiko at gmail.com>
AuthorDate: Wed Nov 4 14:53:16 2020 +0100
Commit: Heiko Tietze <heiko.tietze at documentfoundation.org>
CommitDate: Sat Feb 27 12:04:50 2021 +0100
Resolves tdf#137922 - Tight extension in start center
Button disabled in start center
Change-Id: I69674a3d0636835751a6a34a7a824561ba84034a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105292
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze at documentfoundation.org>
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 8456d4cd7e99..afeb5a0b18d2 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -10,6 +10,7 @@
#include <sfx2/templatedlg.hxx>
#include <sfx2/inputdlg.hxx>
+#include <sfx2/module.hxx>
#include <templatesearchview.hxx>
#include <templatesearchviewitem.hxx>
@@ -215,7 +216,11 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(weld::Window *pParent)
mxMoveButton->connect_clicked(LINK(this, SfxTemplateManagerDlg, MoveClickHdl));
mxExportButton->connect_clicked(LINK(this, SfxTemplateManagerDlg, ExportClickHdl));
mxImportButton->connect_clicked(LINK(this, SfxTemplateManagerDlg, ImportClickHdl));
- mxMoreTemplatesButton->connect_clicked(LINK(this, SfxTemplateManagerDlg, LinkClickHdl));
+ // FIXME: rather than disabling make dispatchCommand(".uno:AdditionsDialog") work in start center
+ if ( !SfxModule::GetActiveModule() )
+ mxMoreTemplatesButton->set_sensitive(false);
+ else
+ mxMoreTemplatesButton->connect_clicked(LINK(this, SfxTemplateManagerDlg, LinkClickHdl));
mxListViewButton->connect_clicked(LINK(this, SfxTemplateManagerDlg, ListViewHdl));
mxThumbnailViewButton->connect_clicked(LINK(this, SfxTemplateManagerDlg, ThumbnailViewHdl));
More information about the Libreoffice-commits
mailing list