forked from qt-creator/qt-creator
WelcomePage: Make welcome page more resilient
Do not try to open non-existant project files when asked to open an example. Change-Id: Ibcd106a0a8354f98998e61cafa3f5cd2ce2844b0 Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
This commit is contained in:
committed by
Daniel Molkentin
parent
1da95bc129
commit
177ed96b35
@@ -401,6 +401,9 @@ void ExamplesWelcomePage::openProject(const QString &projectFile, const QStringL
|
|||||||
|
|
||||||
QStringList filesToOpen = additionalFilesToOpen;
|
QStringList filesToOpen = additionalFilesToOpen;
|
||||||
QFileInfo proFileInfo(proFile);
|
QFileInfo proFileInfo(proFile);
|
||||||
|
if (!proFileInfo.exists())
|
||||||
|
return;
|
||||||
|
|
||||||
// If the Qt is a distro Qt on Linux, it will not be writable, hence compilation will fail
|
// If the Qt is a distro Qt on Linux, it will not be writable, hence compilation will fail
|
||||||
if (!proFileInfo.isWritable())
|
if (!proFileInfo.isWritable())
|
||||||
proFile = copyToAlternativeLocation(proFileInfo, filesToOpen, dependencies);
|
proFile = copyToAlternativeLocation(proFileInfo, filesToOpen, dependencies);
|
||||||
|
Reference in New Issue
Block a user