summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-12-18 11:04:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-12-18 13:27:53 +0100
commit1db0e536516b912c6b5e266a05f50a0dbfc58e67 (patch)
tree8baa1fe2ce7acae9c227cb418d28c9ce05e82ac5 /sfx2
parent9fcca59d30ab69bfbb07b40d7429bcba6fcf869c (diff)
When showing --with-help=html offline help fails, fall back to online help
Change-Id: I6a74b94adc26923f9e83dd09d9b1d077a73b5d05 Reviewed-on: https://gerrit.libreoffice.org/65323 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/sfxhelp.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index 42748f9cc52d..4f753c6b442d 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -877,9 +877,8 @@ bool SfxHelp::Start_Impl(const OUString& rURL, const vcl::Window* pWindow, const
// display" code below:
if (SfxContentHelper::IsHelpErrorDocument(aHelpURL))
{
- if ( impl_hasHTMLHelpInstalled() )
+ if ( impl_hasHTMLHelpInstalled() && impl_showOfflineHelp(aHelpURL) )
{
- impl_showOfflineHelp(aHelpURL);
return true;
}
@@ -1035,9 +1034,8 @@ bool SfxHelp::Start_Impl(const OUString& rURL, weld::Widget* pWidget, const OUSt
// display" code below:
if (SfxContentHelper::IsHelpErrorDocument(aHelpURL))
{
- if ( impl_hasHTMLHelpInstalled() )
+ if ( impl_hasHTMLHelpInstalled() && impl_showOfflineHelp(aHelpURL) )
{
- impl_showOfflineHelp(aHelpURL);
return true;
}