diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-05-29 08:32:05 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-05-29 08:32:05 +0200 |
commit | 84757f485b51bd54926807d05fe4fa503a09ea4c (patch) | |
tree | 84cec28b03c47b3aef056d4d8fa81dec00812e12 /logic/minecraft/OneSixProfileStrategy.cpp | |
parent | b7f8241968b4cf684c31c575a6159d577faab76a (diff) | |
download | MultiMC-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.cpp | 9 |
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; } |