Fix watching new folders for DEPOLYMENT

This commit is contained in:
dt
2010-08-16 13:01:36 +02:00
parent 44a5e29246
commit 4c085581f9

View File

@@ -1241,8 +1241,13 @@ void CentralizedFolderWatcher::folderChanged(const QString &folder)
dir.cdUp(); dir.cdUp();
} }
QString folderWithSlash = folder;
if (!folder.endsWith('/'))
folderWithSlash.append('/');
// If a subdirectory was added, watch it too // If a subdirectory was added, watch it too
QSet<QString> tmp = recursiveDirs(folder); QSet<QString> tmp = recursiveDirs(folderWithSlash);
if (!tmp.isEmpty()) { if (!tmp.isEmpty()) {
if (debugCFW) if (debugCFW)
qDebug()<<"found new recursive dirs"<<tmp; qDebug()<<"found new recursive dirs"<<tmp;