diff options
Diffstat (limited to 'src/lootdialog.cpp')
| -rw-r--r-- | src/lootdialog.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
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") + "**"); + } } |
