summaryrefslogtreecommitdiffstats
path: root/src/b2qt-flashing-wizard/progress_page.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/b2qt-flashing-wizard/progress_page.cpp')
-rw-r--r--src/b2qt-flashing-wizard/progress_page.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/b2qt-flashing-wizard/progress_page.cpp b/src/b2qt-flashing-wizard/progress_page.cpp
index 9c87d2d..01a8691 100644
--- a/src/b2qt-flashing-wizard/progress_page.cpp
+++ b/src/b2qt-flashing-wizard/progress_page.cpp
@@ -82,11 +82,19 @@ void ProgressPage::finished()
wizard()->next(); // progress to next page automatically
}
+void ProgressPage::failed(const QString &message)
+{
+ mFinished = false;
+ emit completeChanged();
+ mProgress->setText(message);
+}
+
void ProgressPage::setActor(Actor *actor)
{
Q_ASSERT(actor);
mActor = actor;
connect(actor, &Actor::finished, this, &ProgressPage::finished);
+ connect(actor, &Actor::failed, this, &ProgressPage::failed);
connect(actor, &Actor::details, this, &ProgressPage::addDetails);
connect(actor, &Actor::progress, this, &ProgressPage::progress);
}