[finished] Actually read the new-style config value

This commit is contained in:
Adriaan de Groot 2019-05-06 12:23:10 +02:00
parent f3c86810a1
commit 44107d6c33

View File

@ -189,6 +189,13 @@ FinishedViewStep::setConfigurationMap( const QVariantMap& configurationMap )
else
mode = restartNowChecked ? RestartMode::UserChecked : RestartMode::UserUnchecked;
}
else
{
bool ok = false;
mode = modeNames().find( restartMode, ok );
if ( !ok )
cWarning() << "Configuring the finished module with bad restartNowMode" << restartMode;
}
m_widget->setRestart( mode );