summaryrefslogtreecommitdiff
path: root/src/filerenamer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filerenamer.cpp')
-rw-r--r--src/filerenamer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filerenamer.cpp b/src/filerenamer.cpp
index 7fc90eb2..dd5876b6 100644
--- a/src/filerenamer.cpp
+++ b/src/filerenamer.cpp
@@ -38,7 +38,7 @@ FileRenamer::RenameResults FileRenamer::rename(const QString& oldName, const QSt
log::debug("removing {}", newName);
// user wants to replace the file, so remove it
- const auto r = shell::Delete(newName);
+ const auto r = shell::Delete(QFileInfo(newName));
if (!r.success()) {
log::error("failed to remove '{}': {}", newName, r.toString());
@@ -68,7 +68,7 @@ FileRenamer::RenameResults FileRenamer::rename(const QString& oldName, const QSt
}
// target either didn't exist or was removed correctly
- const auto r = shell::Rename(oldName, newName);
+ const auto r = shell::Rename(QFileInfo(oldName), QFileInfo(newName));
if (!r.success()) {
log::error(