forked from qt-creator/qt-creator
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user