GH-1015 catch exceptions when doing profile reapply

This is a temporary solution.
This commit is contained in:
Petr Mrázek
2015-05-31 19:59:07 +02:00
parent b9e06b5da0
commit 99f248ecd4
3 changed files with 28 additions and 16 deletions

View File

@@ -389,14 +389,7 @@ bool OneSixProfileStrategy::installJarMods(QStringList filepaths)
profile->appendPatch(f);
}
profile->saveCurrentOrder();
try
{
profile->reapply();
}
catch (VersionIncomplete &error)
{
qDebug() << "Version was incomplete:" << error.cause();
}
profile->reapplySafe();
return true;
}