From 3b3e7c7d5871fa893a59a9fd712a6cf51ec44274 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Wed, 29 Jan 2014 16:10:09 +0000 Subject: [PATCH] Fixed progress dialog not disappearing if sorting failed. --- src/gui/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 1bffcb8b..019e8bd1 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -764,7 +764,10 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) { } } catch (std::exception& e) { BOOST_LOG_TRIVIAL(error) << "Failed to calculate the load order. Details: " << e.what(); - messages.push_back(boss::Message(boss::g_message_error, (format(loc::translate("Failed to calculate the load order. Details: %1%")) % e.what()).str())); + messages.push_back(boss::Message(boss::g_message_error, (format(loc::translate("Failed to calculate the load order. Details: %1%")) % e.what()).str())); + + progDia->Destroy(); + progDia = NULL; } //Read the details section of the previous report, if it exists.