Commit dc1536f2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, menus: move "Quit after playback" to playbakc menu

parent 1cab82c2
...@@ -486,11 +486,6 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterface ...@@ -486,11 +486,6 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterface
action->setChecked( mi->isPlDocked() ); action->setChecked( mi->isPlDocked() );
CONNECT( action, triggered( bool ), mi, dockPlaylist( bool ) ); CONNECT( action, triggered( bool ), mi, dockPlaylist( bool ) );
action = menu->addAction( qtr( "Quit after Playback" ) );
action->setCheckable( true );
action->setChecked( THEMIM->getPlayExitState() );
CONNECT( action, triggered( bool ), THEMIM, activatePlayQuit( bool ) );
#if 0 /* For Visualisations. Not yet working */ #if 0 /* For Visualisations. Not yet working */
adv = menu->addAction( qtr( "Visualizations selector" ), mi, adv = menu->addAction( qtr( "Visualizations selector" ), mi,
SLOT( visual() ) ); SLOT( visual() ) );
...@@ -820,6 +815,12 @@ void QVLCMenu::PopupMenuPlaylistControlEntries( QMenu *menu, ...@@ -820,6 +815,12 @@ void QVLCMenu::PopupMenuPlaylistControlEntries( QMenu *menu,
":/menu/previous", SLOT( prev() ) ); ":/menu/previous", SLOT( prev() ) );
addMIMStaticEntry( p_intf, menu, qtr( "Ne&xt" ), addMIMStaticEntry( p_intf, menu, qtr( "Ne&xt" ),
":/menu/next", SLOT( next() ) ); ":/menu/next", SLOT( next() ) );
action = addMIMStaticEntry( p_intf, menu, qtr( "Quit after Playback" ), "",
SLOT( activatePlayQuit( bool ) ) );
action->setCheckable( true );
action->setChecked( THEMIM->getPlayExitState() );
menu->addSeparator(); menu->addSeparator();
} }
......
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