GH-887 fix patch file removal
This commit is contained in:
parent
4d8f068f9c
commit
28aa8f342e
2 changed files with 20 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue