forked from qt-creator/qt-creator
Fix watching new folders for DEPOLYMENT
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user