From 2626e9b13ea92443fba5f1a29351677cdfc12450 Mon Sep 17 00:00:00 2001 From: Martin Burchell Date: Tue, 30 Apr 2024 15:31:48 +0100 Subject: [PATCH] Fix uninitialised flag in TaskChain Fixes #350 (or part of it). If a task chain had been aborted because of a missing IP setting, pressing the back button would cause the tasks up to the prohibited one to be displayed. --- tablet_qt/tasklib/taskchain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tablet_qt/tasklib/taskchain.cpp b/tablet_qt/tasklib/taskchain.cpp index 907ac4e9f..58f0f244c 100644 --- a/tablet_qt/tasklib/taskchain.cpp +++ b/tablet_qt/tasklib/taskchain.cpp @@ -38,7 +38,8 @@ TaskChain::TaskChain(CamcopsApp& app, m_creation_method(creation_method), m_title(title), m_subtitle(subtitle), - m_current_task_index(-1) + m_current_task_index(-1), + m_proceed_when_app_has_closed_last_task(false) { QObject::connect(&m_app, &CamcopsApp::subWindowFinishedClosing, this, &TaskChain::onAppSubWindowClosed);