Skip to content

Commit

Permalink
Fix uninitialised flag in TaskChain
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
martinburchell committed Apr 30, 2024
1 parent 254b421 commit 2626e9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tablet_qt/tasklib/taskchain.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 2626e9b

Please sign in to comment.