GH-1015 fix crash when version is incomplete and adding jar mods

This commit is contained in:
Petr Mrázek 2015-05-29 08:32:05 +02:00
parent b7f8241968
commit 84757f485b

View File

@ -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;
}