Enable Restart Now checkBox if required.

This commit is contained in:
Teo Mrnjavac 2015-11-06 14:57:01 +01:00
parent 6f222686b1
commit 33ab4ee663

View file

@ -113,10 +113,9 @@ FinishedViewStep::setConfigurationMap( const QVariantMap& configurationMap )
{
bool restartNowEnabled = configurationMap.value( "restartNowEnabled" ).toBool();
m_widget->setRestartNowEnabled( restartNowEnabled );
if ( restartNowEnabled )
{
m_widget->setRestartNowEnabled( restartNowEnabled );
if ( configurationMap.contains( "restartNowChecked" ) &&
configurationMap.value( "restartNowChecked" ).type() == QVariant::Bool &&
configurationMap.contains( "restartNowCommand" ) &&