]> git.sesse.net Git - vlc/commitdiff
Qt: menu: 'quit after playback' is playlist related
authorFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 24 Mar 2011 20:27:36 +0000 (21:27 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 24 Mar 2011 20:47:59 +0000 (21:47 +0100)
modules/gui/qt4/menus.cpp

index 870cf4d680805ad8bab107044546c27c4f4470ca..a2593b41ec04417c3fa293d292b820ec1965ee23 100644 (file)
@@ -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();
 }