summaryrefslogtreecommitdiff
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 0371940d5644..6e44e13bc67b 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -45,6 +45,7 @@
#include <o3tl/make_unique.hxx>
#include <comphelper/dispatchcommand.hxx>
+#include <comphelper/lok.hxx>
using namespace css;
@@ -1811,6 +1812,16 @@ void HelpButton::Click()
PushButton::Click();
}
+void HelpButton::StateChanged( StateChangedType nStateChange )
+{
+ // Hide when we have no help URL.
+ if (comphelper::LibreOfficeKit::isActive() &&
+ Application::GetSettings().GetHelpSettings().GetHelpURL().isEmpty())
+ Hide();
+ else
+ PushButton::StateChanged(nStateChange);
+}
+
void RadioButton::ImplInitRadioButtonData()
{
mbChecked = false;