aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2021-06-09 09:59:37 +0200
committerDavid Schulz <david.schulz@qt.io>2021-06-17 06:30:51 +0000
commit410b02f8c5b1631c376e269c670c559524b5eabb (patch)
tree856dbeb57aa7c8d25d99a38be11b58739622dbc1 /src/plugins/resourceeditor
parent072958c3b090338356d61d63add9e2ebc73a6463 (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.cpp4
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;
}