Commit 45be534e authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

Qt: fix loop-button icon on notification of change

Given that NORMAL=0, REPEAT_ALL=1, REPEAT_ONE=2, the previous code would
not yield a value that actually corresponds to the correct icon when we
receive notification of "loop mode change".
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 2762e73e
......@@ -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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment