GH-887 fix patch file removal
This commit is contained in:
@ -99,10 +99,14 @@ bool MinecraftProfile::canRemove(const int index) const
|
||||
bool MinecraftProfile::remove(const int index)
|
||||
{
|
||||
if (!canRemove(index))
|
||||
{
|
||||
qDebug() << "Patch" << index << "is non-removable";
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!m_strategy->removePatch(VersionPatches.at(index)))
|
||||
{
|
||||
qCritical() << "Patch" << index << "could not be removed";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user