Commit 4e5dff5a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: do "normal->loopall->loop1->normal" instead of "normal->loop1->loopall->normal"

And fix logic
parent 47da002c
...@@ -258,6 +258,6 @@ void AtoB_Button::setIcons( bool timeA, bool timeB ) ...@@ -258,6 +258,6 @@ void AtoB_Button::setIcons( bool timeA, bool timeB )
void LoopButton::updateIcons( int value ) void LoopButton::updateIcons( int value )
{ {
setChecked( value != NORMAL ); setChecked( value != NORMAL );
setIcon( ( value == REPEAT_ALL ) ? QIcon( ":/buttons/playlist/repeat_all" ) setIcon( ( value == REPEAT_ONE ) ? QIcon( ":/buttons/playlist/repeat_one" )
: QIcon( ":/buttons/playlist/repeat_one" ) ); : QIcon( ":/buttons/playlist/repeat_all" ) );
} }
...@@ -1103,8 +1103,8 @@ void MainInputManager::toggleRandom() ...@@ -1103,8 +1103,8 @@ void MainInputManager::toggleRandom()
void MainInputManager::notifyRepeatLoop() void MainInputManager::notifyRepeatLoop()
{ {
int i_value = var_GetBool( THEPL, "loop" ) * REPEAT_ONE int i_value = var_GetBool( THEPL, "loop" ) * REPEAT_ALL
+ var_GetBool( THEPL, "repeat" ) * REPEAT_ALL; + var_GetBool( THEPL, "repeat" ) * REPEAT_ONE;
emit repeatLoopChanged( i_value ); emit repeatLoopChanged( i_value );
} }
......
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