aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2018-02-05 13:21:04 +0100
committerChristian Stenger <christian.stenger@qt.io>2018-02-05 12:41:59 +0000
commit6f5f07d2e47ece8f116ddff2025d9ef39c9a450b (patch)
tree8e2b1486ee10eeddd8871661af7f07d563fc9786 /src
parent78ce194d950f5a7b5dad8ec5b5e74aab4e4e4c9b (diff)
Utils: Do not assume qtchooser target as valid
Change-Id: Ia92286cf8dbc810139ab0cb1e7440aa62d290e21 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/libs/utils/buildablehelperlibrary.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/utils/buildablehelperlibrary.cpp b/src/libs/utils/buildablehelperlibrary.cpp
index ca50d58bae..caec634263 100644
--- a/src/libs/utils/buildablehelperlibrary.cpp
+++ b/src/libs/utils/buildablehelperlibrary.cpp
@@ -66,7 +66,8 @@ static bool isQmake(const QString &path)
QFileInfo fi(path);
if (BuildableHelperLibrary::isQtChooser(fi))
fi.setFile(BuildableHelperLibrary::qtChooserToQmakePath(fi.symLinkTarget()));
-
+ if (!fi.exists() || fi.isDir())
+ return false;
return !BuildableHelperLibrary::qtVersionForQMake(fi.absoluteFilePath()).isEmpty();
}