Commit 54be2fed authored by kh1's avatar kh1

We need to create the right pane also in case we handle a help request.

parent d8496527
......@@ -485,7 +485,7 @@ bool HelpPlugin::unregisterDocumentation(const QStringList &nameSpaces)
return needsSetup;
}
void HelpPlugin::createRightPaneSideBar()
void HelpPlugin::createRightPaneContextViewer()
{
if (m_helpViewerForSideBar)
return;
......@@ -855,10 +855,12 @@ HelpViewer* HelpPlugin::viewerForContextMode()
HelpViewer *viewer = m_centralWidget->currentHelpViewer();
if (placeHolder && showSideBySide) {
RightPaneWidget::instance()->setShown(true);
createRightPaneContextViewer();
viewer = m_helpViewerForSideBar;
} else {
activateHelpMode();
if (!viewer && m_centralWidget)
if (!viewer)
viewer = m_centralWidget->newEmptyTab();
}
return viewer;
......@@ -867,9 +869,7 @@ HelpViewer* HelpPlugin::viewerForContextMode()
void HelpPlugin::activateContext()
{
using namespace Core;
if (!m_helpViewerForSideBar)
createRightPaneSideBar();
createRightPaneContextViewer();
RightPanePlaceHolder* placeHolder = RightPanePlaceHolder::current();
if (placeHolder && m_helpViewerForSideBar->hasFocus()) {
......
......@@ -140,7 +140,7 @@ private:
private:
QToolBar *createToolBar();
void createRightPaneSideBar();
void createRightPaneContextViewer();
void activateHelpMode();
HelpViewer* viewerForContextMode();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment