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