Skip to content
Snippets Groups Projects
Commit 177ed96b authored by Tobias Hunger's avatar Tobias Hunger Committed by Daniel Molkentin
Browse files

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: default avatarDaniel Molkentin <daniel.molkentin@nokia.com>
parent 1da95bc1
No related branches found
No related tags found
No related merge requests found
......@@ -401,6 +401,9 @@ void ExamplesWelcomePage::openProject(const QString &projectFile, const QStringL
QStringList filesToOpen = additionalFilesToOpen;
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 (!proFileInfo.isWritable())
proFile = copyToAlternativeLocation(proFileInfo, filesToOpen, dependencies);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment