Commit 60b663d5 authored by dt's avatar dt

Filter non existing folders

parent 65a1c129
......@@ -557,6 +557,16 @@ void Qt4PriFileNode::update(ProFile *includeFileExact, ProFileReader *readerExac
folders[i] = projectDir + "/" + folders.at(i);
}
// Remove non existing items
QStringList::iterator it = folders.begin();
while (it != folders.end()) {
QFileInfo fi(*it);
if (!fi.exists())
it = folders.erase(it);
else
++it;
}
folders.removeDuplicates();
watchFolders(folders.toSet());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment