From 97bfe3a53e69f1878e6fa24d42edd0a3766ebf28 Mon Sep 17 00:00:00 2001 From: Eike Ziller <eike.ziller@digia.com> Date: Fri, 20 Jun 2014 15:41:03 +0200 Subject: [PATCH] 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> --- src/plugins/help/helpplugin.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index 776dd8ee53f..7d44f561817 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -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()) { -- GitLab