forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.5'
Change-Id: Ife5fdcd71b0adc99d4297a28a64515e9e93d7864
This commit is contained in:
@@ -467,6 +467,8 @@ ProjectExplorer::FolderNode *CMakeProject::findOrCreateFolder(CMakeProjectNode *
|
||||
FileName path = rootNode->path().parentDir();
|
||||
QDir rootParentDir(path.toString());
|
||||
QString relativePath = rootParentDir.relativeFilePath(directory);
|
||||
if (relativePath == QLatin1String("."))
|
||||
relativePath.clear();
|
||||
QStringList parts = relativePath.split(QLatin1Char('/'), QString::SkipEmptyParts);
|
||||
ProjectExplorer::FolderNode *parent = rootNode;
|
||||
foreach (const QString &part, parts) {
|
||||
|
||||
Reference in New Issue
Block a user