summaryrefslogtreecommitdiff
path: root/vcl/source/control/wizardmachine.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-11-20 12:40:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-11-20 15:59:12 +0100
commit5b20135a942328bfe5160ba2efa43b1ea9f0239c (patch)
tree764f57d1e2d01177495840d5cb9e08d9af56442d /vcl/source/control/wizardmachine.cxx
parent8d8835c55648650276a438b74f694ee5c890b828 (diff)
hide help buttons when LibreOfficeKit::isActive and local help unavailable
Change-Id: Ia263f9f7c78dbf48143678fc2f577402fb1ce998 Reviewed-on: https://gerrit.libreoffice.org/83304 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/control/wizardmachine.cxx')
-rw-r--r--vcl/source/control/wizardmachine.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/source/control/wizardmachine.cxx b/vcl/source/control/wizardmachine.cxx
index cb73add6300f..cbcea92343ad 100644
--- a/vcl/source/control/wizardmachine.cxx
+++ b/vcl/source/control/wizardmachine.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <comphelper/lok.hxx>
+#include <officecfg/Office/Common.hxx>
#include <vcl/event.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
@@ -937,9 +939,11 @@ namespace vcl
{
m_pImpl->sTitleBase = m_xAssistant->get_title();
+ const bool bHideHelp = comphelper::LibreOfficeKit::isActive() &&
+ officecfg::Office::Common::Help::HelpRootURL::get().isEmpty();
// create the buttons according to the wizard button flags
// the help button
- if (nButtonFlags & WizardButtonFlags::HELP)
+ if (nButtonFlags & WizardButtonFlags::HELP && !bHideHelp)
m_xHelp->show();
else
m_xHelp->hide();