[vlc-commits] Qt, menus: move "Quit after playback" to playbakc menu

Jean-Baptiste Kempf git at videolan.org
Fri Mar 11 23:23:52 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Mar 11 22:15:31 2011 +0100| [dc1536f2a85e404aef00a6b265bb9d9c97ffacda] | committer: Jean-Baptiste Kempf

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

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

 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 42ecf16..4629406 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -486,11 +486,6 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterface
     action->setChecked( mi->isPlDocked() );
     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 */
     adv = menu->addAction( qtr( "Visualizations selector" ), mi,
                            SLOT( visual() ) );
@@ -820,6 +815,12 @@ void QVLCMenu::PopupMenuPlaylistControlEntries( QMenu *menu,
         ":/menu/previous", SLOT( prev() ) );
     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