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
|
@ -16,6 +16,7 @@
|
|||
#include <QFile>
|
||||
|
||||
#include "BaseInstaller.h"
|
||||
#include "FileSystem.h"
|
||||
#include "minecraft/MinecraftInstance.h"
|
||||
|
||||
BaseInstaller::BaseInstaller() {}
|
||||
|
@ -42,7 +43,7 @@ bool BaseInstaller::add(MinecraftInstance* to)
|
|||
|
||||
bool BaseInstaller::remove(MinecraftInstance* from)
|
||||
{
|
||||
return QFile::remove(filename(from->instanceRoot()));
|
||||
return FS::deletePath(filename(from->instanceRoot()));
|
||||
}
|
||||
|
||||
QString BaseInstaller::filename(const QString& root) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue