File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,11 @@ void GetMatrixSliceDialog::selectLastIndex()
9999
100100void GetMatrixSliceDialog::startPlay ()
101101{
102- state_->setTransientValue (Parameters::PlayMode, GetMatrixSliceAlgo::PLAY);
102+ state_->setTransientValue (Parameters::PlayMode, static_cast < int >( GetMatrixSliceAlgo::PLAY) );
103103 Q_EMIT executeActionTriggered ();
104104}
105105
106106void GetMatrixSliceDialog::stopPlay ()
107107{
108- state_->setTransientValue (Parameters::PlayMode, GetMatrixSliceAlgo::PAUSE);
108+ state_->setTransientValue (Parameters::PlayMode, static_cast < int >( GetMatrixSliceAlgo::PAUSE) );
109109}
Original file line number Diff line number Diff line change @@ -85,5 +85,10 @@ void GetMatrixSlice::execute()
8585 {
8686 playing_ = false ;
8787 }
88+ else if (playMode != 0 )
89+ {
90+ playing_ = false ;
91+ remark (" Logical error: received invalid play mode value" );
92+ }
8893 }
8994}
You can’t perform that action at this time.
0 commit comments