forked from qt-creator/qt-creator
Help: Remove hack for example documentation
The code for opening examples nowadays explicitly changes to edit mode before opening the example documentation, so we do not need to do that hack here anymore. Change-Id: I536784fdc0def8916c14f6df1bb7e50d11aff164 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
This commit is contained in:
@@ -684,10 +684,6 @@ void HelpPlugin::setupHelpEngineIfNeeded()
|
||||
|
||||
HelpViewer *HelpPlugin::viewerForContextMode()
|
||||
{
|
||||
// TODO this is a hack for opening examples
|
||||
if (ModeManager::currentMode()->id() == Core::Constants::MODE_WELCOME)
|
||||
ModeManager::activateMode(Core::Constants::MODE_EDIT);
|
||||
|
||||
bool showSideBySide = false;
|
||||
RightPanePlaceHolder *placeHolder = RightPanePlaceHolder::current();
|
||||
switch (contextHelpOption()) {
|
||||
|
||||
Reference in New Issue
Block a user