aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-08-17 10:13:34 +0200
committerhjk <hjk@qt.io>2021-08-18 14:22:49 +0000
commitc7165f2c3cee2d0f0141ff6ef25483173a099b1f (patch)
tree40a0fe282af446f12aa2c609213c01459ac0305b /src/plugins/resourceeditor/qrceditor/resourcefile.cpp
parentbd5b6b60c9d51e0b2436cab2ba18e0910cacb026 (diff)
Core: Remove FileUtils::removeFile(QString)
Only used once, and there's an easily accessible removeFiles(FilePaths) at hand. Change-Id: I939298515f27cd34d08afa327ebe198bc30851a1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/qrceditor/resourcefile.cpp')
-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 bfc77ad26f..4399e52f99 100644
--- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
+++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
@@ -1260,7 +1260,8 @@ EntryBackup * RelativeResourceModel::removeEntry(const QModelIndex &index)
Utils::RemoveFileDialog removeFileDialog(fileNameBackup, Core::ICore::dialogParent());
if (removeFileDialog.exec() == QDialog::Accepted) {
deleteItem(index);
- Core::FileUtils::removeFile(fileNameBackup, removeFileDialog.isDeleteFileChecked());
+ Core::FileUtils::removeFiles({Utils::FilePath::fromString(fileNameBackup)},
+ removeFileDialog.isDeleteFileChecked());
return new FileEntryBackup(*this, prefixIndex.row(), index.row(), fileNameBackup, aliasBackup);
}
return nullptr;