[vlc-commits] Qt: menu: 'quit after playback' is playlist related

Francois Cartegnie git at videolan.org
Thu Mar 24 21:48:14 CET 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 24 21:27:36 2011 +0100| [b1fc78b0f971822a5cdb093e532770c8c840a061] | committer: Francois Cartegnie

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b1fc78b0f971822a5cdb093e532770c8c840a061
---

 modules/gui/qt4/menus.cpp |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 870cf4d..a2593b4 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -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();
 }
 



More information about the vlc-commits mailing list