Commit b1fc78b0 authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: menu: 'quit after playback' is playlist related

parent 58634ccf
......@@ -330,6 +330,7 @@ void QVLCMenu::createMenuBar( MainInterface *mi,
QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent )
{
QMenu *menu = new QMenu( parent );
QAction *action;
addDPStaticEntry( menu, qtr( "&Open File..." ),
":/type/file-asym", SLOT( simpleOpenDialog() ), "Ctrl+O" );
......@@ -368,6 +369,11 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent )
menu->addSeparator();
#endif
action = addMIMStaticEntry( p_intf, menu, qtr( "Quit at the end of playlist" ), "",
SLOT( activatePlayQuit( bool ) ) );
action->setCheckable( true );
action->setChecked( THEMIM->getPlayExitState() );
addDPStaticEntry( menu, qtr( "&Quit" ) ,
":/menu/quit", SLOT( quit() ), "Ctrl+Q" );
return menu;
......@@ -825,11 +831,6 @@ void QVLCMenu::PopupMenuPlaylistControlEntries( QMenu *menu,
addMIMStaticEntry( p_intf, menu, qtr( "Ne&xt" ),
":/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();
}
......
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