forked from qt-creator/qt-creator
Fix lots of QFileSystemWarnings about empty lists
Also only watch folders not files. That also removes files that are directly listed in INSTALLS / DEPLOYMENT, I'll readd them in a later commit.
This commit is contained in:
@@ -557,11 +557,12 @@ void Qt4PriFileNode::update(ProFile *includeFileExact, ProFileReader *readerExac
|
||||
folders[i] = projectDir + "/" + folders.at(i);
|
||||
}
|
||||
|
||||
// Remove non existing items
|
||||
// Remove non existing items and non folders
|
||||
// todo fix files in INSTALL rules
|
||||
QStringList::iterator it = folders.begin();
|
||||
while (it != folders.end()) {
|
||||
QFileInfo fi(*it);
|
||||
if (!fi.exists())
|
||||
if (!fi.exists() || !fi.isDir())
|
||||
it = folders.erase(it);
|
||||
else
|
||||
++it;
|
||||
|
||||
Reference in New Issue
Block a user