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

@@ -1184,7 +1184,8 @@ void CentralizedFolderWatcher::watchFolders(const QList<QString> &folders, Qt4Pr
// Support for recursive watching
// we add the recursive directories we find
QSet<QString> tmp = recursiveDirs(folder);
m_watcher.addPaths(tmp.toList());
if (!tmp.isEmpty())
m_watcher.addPaths(tmp.toList());
m_recursiveWatchedFolders += tmp;
if (debugCFW)