summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/OneSixProfileStrategy.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-29 08:32:05 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-29 08:32:05 +0200
commit84757f485b51bd54926807d05fe4fa503a09ea4c (patch)
tree84cec28b03c47b3aef056d4d8fa81dec00812e12 /logic/minecraft/OneSixProfileStrategy.cpp
parentb7f8241968b4cf684c31c575a6159d577faab76a (diff)
downloadMultiMC-84757f485b51bd54926807d05fe4fa503a09ea4c.tar
MultiMC-84757f485b51bd54926807d05fe4fa503a09ea4c.tar.gz
MultiMC-84757f485b51bd54926807d05fe4fa503a09ea4c.tar.lz
MultiMC-84757f485b51bd54926807d05fe4fa503a09ea4c.tar.xz
MultiMC-84757f485b51bd54926807d05fe4fa503a09ea4c.zip
GH-1015 fix crash when version is incomplete and adding jar mods
Diffstat (limited to 'logic/minecraft/OneSixProfileStrategy.cpp')
-rw-r--r--logic/minecraft/OneSixProfileStrategy.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/logic/minecraft/OneSixProfileStrategy.cpp b/logic/minecraft/OneSixProfileStrategy.cpp
index cd8fd976..160e2c24 100644
--- a/logic/minecraft/OneSixProfileStrategy.cpp
+++ b/logic/minecraft/OneSixProfileStrategy.cpp
@@ -389,7 +389,14 @@ bool OneSixProfileStrategy::installJarMods(QStringList filepaths)
profile->appendPatch(f);
}
profile->saveCurrentOrder();
- profile->reapply();
+ try
+ {
+ profile->reapply();
+ }
+ catch (VersionIncomplete &error)
+ {
+ qDebug() << "Version was incomplete:" << error.cause();
+ }
return true;
}