From 78ee23220f4b755515dfb391aeb3fbdb6d48f0d6 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 25 Nov 2019 05:31:28 -0500 Subject: bumped to 2.2.2alpha7 use the broom icon for dirty plugins better handling of failing to spawn loot --- src/lootdialog.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/lootdialog.cpp') diff --git a/src/lootdialog.cpp b/src/lootdialog.cpp index 9e269fef..ae3b1164 100644 --- a/src/lootdialog.cpp +++ b/src/lootdialog.cpp @@ -262,12 +262,16 @@ void LootDialog::log(log::Levels lv, const QString& s) void LootDialog::showReport() { - const auto& lootReport = m_loot.report(); + if (m_loot.result()) { + const auto& lootReport = m_loot.report(); - m_core.pluginList()->clearAdditionalInformation(); - for (auto&& p : lootReport.plugins) { - m_core.pluginList()->addLootReport(p.name, p); - } + m_core.pluginList()->clearAdditionalInformation(); + for (auto&& p : lootReport.plugins) { + m_core.pluginList()->addLootReport(p.name, p); + } - m_report.setText(lootReport.toMarkdown()); + m_report.setText(lootReport.toMarkdown()); + } else { + m_report.setText("**" + tr("Loot failed to run") + "**"); + } } -- cgit v1.3.1