aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/qrceditor
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2021-06-11 14:34:34 +0200
committerDavid Schulz <david.schulz@qt.io>2021-06-17 11:13:51 +0000
commitf66df921d74c323d899f996d9ca520c224355a90 (patch)
tree42ef20fe9de0b55b756d9ba56b731d1a474c9c08 /src/plugins/resourceeditor/qrceditor
parent55b91a76172a3235b4879daf0b675519d5b02db7 (diff)
Core: filepathify file renaming
Change-Id: I3d4f39e34e65cde3df7b7c19570e3a54d0625d53 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/qrceditor')
-rw-r--r--src/plugins/resourceeditor/qrceditor/resourcefile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
index 7b48f88ef2..bfc77ad26f 100644
--- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
+++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
@@ -382,7 +382,8 @@ bool ResourceFile::renameFile(const QString &fileName, const QString &newFileNam
if (entries.at(0)->exists()) {
foreach (File *file, entries)
file->setExists(true);
- success = Core::FileUtils::renameFile(entries.at(0)->name, newFileName);
+ success = Core::FileUtils::renameFile(Utils::FilePath::fromString(entries.at(0)->name),
+ Utils::FilePath::fromString(newFileName));
}
if (success) {