GH-228 do not recurse into reparse points when deleting instances
This commit is contained in:
@ -61,7 +61,7 @@ void BaseInstance::iconUpdated(QString key)
|
||||
|
||||
void BaseInstance::nuke()
|
||||
{
|
||||
QDir(instanceRoot()).removeRecursively();
|
||||
deletePath(instanceRoot());
|
||||
emit nuked(this);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user