From c7398dfdc581fbf36205fa826ad2aeadcd9b0122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 7 Apr 2015 22:24:15 +0200 Subject: GH-228 do not recurse into reparse points when deleting instances --- logic/BaseInstance.cpp | 2 +- logic/InstanceList.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'logic') diff --git a/logic/BaseInstance.cpp b/logic/BaseInstance.cpp index 69bc7597..1c6d3e4b 100644 --- a/logic/BaseInstance.cpp +++ b/logic/BaseInstance.cpp @@ -61,7 +61,7 @@ void BaseInstance::iconUpdated(QString key) void BaseInstance::nuke() { - QDir(instanceRoot()).removeRecursively(); + deletePath(instanceRoot()); emit nuked(this); } diff --git a/logic/InstanceList.cpp b/logic/InstanceList.cpp index 4e295e7f..3bdceb51 100644 --- a/logic/InstanceList.cpp +++ b/logic/InstanceList.cpp @@ -503,7 +503,7 @@ InstanceList::copyInstance(InstancePtr &newInstance, InstancePtr &oldInstance, c qDebug() << instDir.toUtf8(); if (!copyPath(oldInstance->instanceRoot(), instDir, false)) { - rootDir.removeRecursively(); + deletePath(instDir); return InstanceList::CantCreateDir; } -- cgit v1.2.3