forked from qt-creator/qt-creator
Qmake: Use FileUtils::commonPath instead of the string based version
Change-Id: Ib7dce9ed26b6ca280767e88ada2bcff52c8a5684 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
#include <resourceeditor/resourcenode.h>
|
#include <resourceeditor/resourcenode.h>
|
||||||
|
|
||||||
|
#include <utils/fileutils.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/stringutils.h>
|
|
||||||
|
|
||||||
#include <android/androidconstants.h>
|
#include <android/androidconstants.h>
|
||||||
#include <ios/iosconstants.h>
|
#include <ios/iosconstants.h>
|
||||||
@@ -114,11 +114,11 @@ bool QmakeBuildSystem::supportsAction(Node *context, ProjectAction action, const
|
|||||||
// A virtual folder, we do what the projectexplorer does
|
// A virtual folder, we do what the projectexplorer does
|
||||||
const FolderNode *folder = node->asFolderNode();
|
const FolderNode *folder = node->asFolderNode();
|
||||||
if (folder) {
|
if (folder) {
|
||||||
QStringList list;
|
FilePaths list;
|
||||||
const auto folderNodes = folder->folderNodes();
|
const auto folderNodes = folder->folderNodes();
|
||||||
for (FolderNode *f : folderNodes)
|
for (FolderNode *f : folderNodes)
|
||||||
list << f->filePath().toString() + QLatin1Char('/');
|
list << f->filePath();
|
||||||
if (n->deploysFolder(Utils::commonPath(list)))
|
if (n->deploysFolder(FileUtils::commonPath(list).toString()))
|
||||||
addExistingFiles = false;
|
addExistingFiles = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user