Help: Show home page when activating index or content

Instead of showing the last page this will always show the home
page when activating index or content from the help menu.

Task-number: QDS-6392
Change-Id: Ic158d22ba3739f5db513e04ebde00fdadc24a9d5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Thomas Hartmann
2022-03-01 10:54:22 +01:00
parent d2b39c800f
commit 1ea773f187

View File

@@ -607,12 +607,14 @@ void HelpPluginPrivate::showContextHelp(const HelpItem &contextHelp)
void HelpPluginPrivate::activateIndex() void HelpPluginPrivate::activateIndex()
{ {
activateHelpMode(); activateHelpMode();
showHelpUrl(LocalHelpManager::homePage(), Core::HelpManager::HelpModeAlways);
m_centralWidget->activateSideBarItem(Constants::HELP_INDEX); m_centralWidget->activateSideBarItem(Constants::HELP_INDEX);
} }
void HelpPluginPrivate::activateContents() void HelpPluginPrivate::activateContents()
{ {
activateHelpMode(); activateHelpMode();
showHelpUrl(LocalHelpManager::homePage(), Core::HelpManager::HelpModeAlways);
m_centralWidget->activateSideBarItem(Constants::HELP_CONTENTS); m_centralWidget->activateSideBarItem(Constants::HELP_CONTENTS);
} }