Don't make a "help request" with an invalid url

Change-Id: I85df68b4ee1ee4d37b77a34ff8f7bce65d24dc0d
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Alessandro Portale
2013-01-31 17:38:13 +01:00
parent c0fe621127
commit b507b2702f

View File

@@ -434,7 +434,8 @@ void ExamplesWelcomePage::openProject(const QString &projectFile, const QStringL
if (project->needsConfiguration()) if (project->needsConfiguration())
project->configureAsExampleProject(platforms); project->configureAsExampleProject(platforms);
Core::ModeManager::activateModeType(Core::Constants::MODE_EDIT_TYPE); Core::ModeManager::activateModeType(Core::Constants::MODE_EDIT_TYPE);
Core::ICore::helpManager()->handleHelpRequest(help.toString()+QLatin1String("?view=split")); if (help.isValid())
Core::ICore::helpManager()->handleHelpRequest(help.toString() + QLatin1String("?view=split"));
} }
if (!errorMessage.isEmpty()) if (!errorMessage.isEmpty())
QMessageBox::critical(Core::ICore::mainWindow(), tr("Failed to Open Project"), errorMessage); QMessageBox::critical(Core::ICore::mainWindow(), tr("Failed to Open Project"), errorMessage);