Examples: Fix showing documentation in side bar.

The new target setup jumps to project mode which doesn't have a help
side bar, so it would always jump to help mode for opening the
documentation.

Change-Id: I83343950d53d230a176b1603ca729e4802972f6e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
Eike Ziller
2012-03-21 11:09:14 +01:00
parent 9bdb8955e1
commit 915873d3b9

View File

@@ -38,9 +38,11 @@
#include <utils/pathchooser.h>
#include <utils/fileutils.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/coreplugin.h>
#include <coreplugin/icore.h>
#include <coreplugin/helpmanager.h>
#include <coreplugin/modemanager.h>
#include <projectexplorer/projectexplorer.h>
#include <QMutex>
@@ -393,6 +395,7 @@ void ExamplesWelcomePage::openProject(const QString &projectFile, const QStringL
QString errorMessage;
if (!proFile.isEmpty() && ProjectExplorer::ProjectExplorerPlugin::instance()->openProject(proFile, &errorMessage)) {
Core::ICore::openFiles(filesToOpen);
Core::ModeManager::activateModeType(QLatin1String(Core::Constants::MODE_EDIT_TYPE));
Core::ICore::helpManager()->handleHelpRequest(help.toString()+QLatin1String("?view=split"));
}
if (!errorMessage.isEmpty())