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:
dt
2010-08-12 13:38:21 +02:00
parent 91ec3dd50a
commit a1760fc84a
2 changed files with 5 additions and 3 deletions

View File

@@ -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;