diff --git a/modules/gui/qt/input_manager.cpp b/modules/gui/qt/input_manager.cpp index 6847969e249c83a76dec48b6ec6e8e057109c6b8..aa9402df9f21ede2f0c29acadbb37c945521a410 100644 --- a/modules/gui/qt/input_manager.cpp +++ b/modules/gui/qt/input_manager.cpp @@ -1131,10 +1131,12 @@ void MainInputManager::notifyRandom(bool value) void MainInputManager::notifyRepeatLoop(bool) { - int i_value = var_GetBool( THEPL, "loop" ) * REPEAT_ALL - + var_GetBool( THEPL, "repeat" ) * REPEAT_ONE; + int i_state = NORMAL; - emit repeatLoopChanged( i_value ); + if( var_GetBool( THEPL, "loop" ) ) i_state = REPEAT_ALL; + if( var_GetBool( THEPL, "repeat" ) ) i_state = REPEAT_ONE; + + emit repeatLoopChanged( i_state ); } void MainInputManager::loopRepeatLoopStatus()