diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-02-17 17:36:29 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-02-17 17:36:29 +0100 |
commit | 8d0ff990896207e7ef9c70a095b45573197d4fbe (patch) | |
tree | 6b78a546c8c9bbe2d61a75f258d0f1262ac0470d /logic/OneSixInstance.cpp | |
parent | 549198031d1469b9aff18b67be09be08afe4cc4a (diff) | |
download | MultiMC-8d0ff990896207e7ef9c70a095b45573197d4fbe.tar MultiMC-8d0ff990896207e7ef9c70a095b45573197d4fbe.tar.gz MultiMC-8d0ff990896207e7ef9c70a095b45573197d4fbe.tar.lz MultiMC-8d0ff990896207e7ef9c70a095b45573197d4fbe.tar.xz MultiMC-8d0ff990896207e7ef9c70a095b45573197d4fbe.zip |
Actually remove instances if they fail to load
Diffstat (limited to 'logic/OneSixInstance.cpp')
-rw-r--r-- | logic/OneSixInstance.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/logic/OneSixInstance.cpp b/logic/OneSixInstance.cpp index ae172f21..048e635c 100644 --- a/logic/OneSixInstance.cpp +++ b/logic/OneSixInstance.cpp @@ -323,7 +323,14 @@ bool OneSixInstance::reloadVersion(QWidget *widgetParent) { ret = d->vanillaVersion->reload(widgetParent, true); } - emit versionReloaded(); + if (ret) + { + emit versionReloaded(); + } + else + { + nuke(); + } return ret; } |