summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/onesix/OneSixInstance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/minecraft/onesix/OneSixInstance.cpp')
-rw-r--r--logic/minecraft/onesix/OneSixInstance.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/logic/minecraft/onesix/OneSixInstance.cpp b/logic/minecraft/onesix/OneSixInstance.cpp
index 3e83ff1c..f8b274ff 100644
--- a/logic/minecraft/onesix/OneSixInstance.cpp
+++ b/logic/minecraft/onesix/OneSixInstance.cpp
@@ -463,23 +463,17 @@ QString OneSixInstance::currentVersionId() const
void OneSixInstance::reloadProfile()
{
- try
- {
- m_profile->reload();
- unsetFlag(VersionBrokenFlag);
- emit versionReloaded();
- }
- catch (VersionIncomplete &error)
+ m_profile->reload();
+ auto severity = m_profile->getProblemSeverity();
+ if(severity == ProblemSeverity::PROBLEM_ERROR)
{
+ setFlag(VersionBrokenFlag);
}
- catch (Exception &error)
+ else
{
- m_profile->clear();
- setFlag(VersionBrokenFlag);
- // TODO: rethrow to show some error message(s)?
- emit versionReloaded();
- throw;
+ unsetFlag(VersionBrokenFlag);
}
+ emit versionReloaded();
}
void OneSixInstance::clearProfile()