diff options
author | David Schulz <david.schulz@qt.io> | 2021-06-09 09:59:37 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2021-06-17 06:30:51 +0000 |
commit | 410b02f8c5b1631c376e269c670c559524b5eabb (patch) | |
tree | 856dbeb57aa7c8d25d99a38be11b58739622dbc1 /src/plugins/resourceeditor | |
parent | 072958c3b090338356d61d63add9e2ebc73a6463 (diff) |
Core: filepathify expected document changes
Change-Id: Ifa9341e55c79459db9ecef3c441da9b2816695bf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r-- | src/plugins/resourceeditor/resourcenode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp index a6fb56fbe7..c00475e850 100644 --- a/src/plugins/resourceeditor/resourcenode.cpp +++ b/src/plugins/resourceeditor/resourcenode.cpp @@ -522,7 +522,7 @@ RemovedFilesFromProject ResourceFolderNode::removeFiles(const QStringList &fileP file.removeFile(index, j); --j; } - FileChangeBlocker changeGuard(m_topLevelNode->filePath().toString()); + FileChangeBlocker changeGuard(m_topLevelNode->filePath()); file.save(); return RemovedFilesFromProject::Ok; @@ -561,7 +561,7 @@ bool ResourceFolderNode::renameFile(const QString &filePath, const QString &newF for (int j = 0; j < file.fileCount(index); ++j) { if (file.file(index, j) == filePath) { file.replaceFile(index, j, newFilePath); - FileChangeBlocker changeGuard(m_topLevelNode->filePath().toString()); + FileChangeBlocker changeGuard(m_topLevelNode->filePath()); file.save(); return true; } |