Replaced QFile::remove with FS::deletePath
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
5099061a5c
commit
031a9f4738
12 changed files with 29 additions and 37 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <QDebug>
|
||||
#include <QFile>
|
||||
#include "FileSystem.h"
|
||||
|
||||
InstanceCreationTask::InstanceCreationTask() = default;
|
||||
|
||||
|
@ -47,7 +48,7 @@ void InstanceCreationTask::executeTask()
|
|||
if (!QFile::exists(path))
|
||||
continue;
|
||||
qDebug() << "Removing" << path;
|
||||
if (!QFile::remove(path)) {
|
||||
if (!FS::deletePath(path)) {
|
||||
qCritical() << "Couldn't remove the old conflicting files.";
|
||||
emitFailed(tr("Failed to remove old conflicting files."));
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue