summaryrefslogtreecommitdiff
path: root/src/lootdialog.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-11-25 05:31:28 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-25 05:31:28 -0500
commit78ee23220f4b755515dfb391aeb3fbdb6d48f0d6 (patch)
tree69f1fbfea5aab18fb650196e4c76cf7e95ad0423 /src/lootdialog.cpp
parent765c9667de25547929f8ff58e3eab7bd3aeb3cbf (diff)
bumped to 2.2.2alpha7
use the broom icon for dirty plugins better handling of failing to spawn loot
Diffstat (limited to 'src/lootdialog.cpp')
-rw-r--r--src/lootdialog.cpp16
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") + "**");
+ }
}