diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp index f2eef779233..2afffce55cd 100644 --- a/src/plugins/qt4projectmanager/qt4project.cpp +++ b/src/plugins/qt4projectmanager/qt4project.cpp @@ -1241,8 +1241,13 @@ void CentralizedFolderWatcher::folderChanged(const QString &folder) dir.cdUp(); } + QString folderWithSlash = folder; + if (!folder.endsWith('/')) + folderWithSlash.append('/'); + + // If a subdirectory was added, watch it too - QSet tmp = recursiveDirs(folder); + QSet tmp = recursiveDirs(folderWithSlash); if (!tmp.isEmpty()) { if (debugCFW) qDebug()<<"found new recursive dirs"<