Fix qmake -project in an empty folder
Avoids iterating over the entire filesystem. Task-number: QTBUG-57569 Change-Id: If089842553978843de73559d1b1a567aa322a047 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
7dc88b6890
commit
decab46c23
@ -150,7 +150,7 @@ ProjectGenerator::init()
|
||||
QString newdir = pd;
|
||||
QFileInfo fi(fileInfo(newdir));
|
||||
if(fi.isDir()) {
|
||||
newdir = fileFixify(newdir);
|
||||
newdir = fileFixify(newdir, FileFixifyFromOutdir);
|
||||
ProStringList &subdirs = v["SUBDIRS"];
|
||||
if(exists(fi.filePath() + QDir::separator() + fi.fileName() + Option::pro_ext) &&
|
||||
!subdirs.contains(newdir, Qt::CaseInsensitive)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user