summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/MinecraftProfile.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-04-13 23:26:52 +0200
committerPetr Mrázek <peterix@gmail.com>2015-04-13 23:26:52 +0200
commit28aa8f342ebaf34655ed0c1dd59851adb224fc64 (patch)
tree22c006ffa9a65f2e569dfb13dc2989b6a6891f7e /logic/minecraft/MinecraftProfile.cpp
parent4d8f068f9cc576c7d1fb19551cb2429282a7c449 (diff)
downloadMultiMC-28aa8f342ebaf34655ed0c1dd59851adb224fc64.tar
MultiMC-28aa8f342ebaf34655ed0c1dd59851adb224fc64.tar.gz
MultiMC-28aa8f342ebaf34655ed0c1dd59851adb224fc64.tar.lz
MultiMC-28aa8f342ebaf34655ed0c1dd59851adb224fc64.tar.xz
MultiMC-28aa8f342ebaf34655ed0c1dd59851adb224fc64.zip
GH-887 fix patch file removal
Diffstat (limited to 'logic/minecraft/MinecraftProfile.cpp')
-rw-r--r--logic/minecraft/MinecraftProfile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/minecraft/MinecraftProfile.cpp b/logic/minecraft/MinecraftProfile.cpp
index e9ff87d8..e87ece00 100644
--- a/logic/minecraft/MinecraftProfile.cpp
+++ b/logic/minecraft/MinecraftProfile.cpp
@@ -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;
}