Commit 385239a4 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: actually activate random action

parent 7bcfcc69
......@@ -90,8 +90,7 @@ void ActionsManager::doAction( int id_action )
case QUIT_ACTION:
THEDP->quit(); break;
case RANDOM_ACTION:
// FIXME
break;
THEMIM->toggleRandom(); break;
default:
msg_Dbg( p_intf, "Action: %i", id_action );
break;
......
......@@ -1029,6 +1029,11 @@ void MainInputManager::togglePlayPause()
getIM()->togglePlayPause();
}
void MainInputManager::toggleRandom()
{
var_ToggleBool( THEPL, "random" );
}
void MainInputManager::activatePlayQuit( bool b_exit )
{
var_SetBool( THEPL, "play-and-exit", b_exit );
......
......@@ -258,6 +258,7 @@ private:
public slots:
void togglePlayPause();
void toggleRandom();
void stop();
void next();
void prev();
......
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