[vlc-commits] qt4: never disable the "Jump to specific time" menu entry (fixes #6669)

Ludovic Fauvet git at videolan.org
Thu Jun 7 16:51:40 CEST 2012


vlc/vlc-2.0 | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Jun  7 15:06:53 2012 +0200| [a08738984e6d5db15fda68ad8844a0e7ff479a33] | committer: Jean-Baptiste Kempf

qt4: never disable the "Jump to specific time" menu entry (fixes #6669)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 33299a4d5e3e6951b9039b929205abf6f5847697)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/menus.cpp |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index b120d4d..177dd4f 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -882,8 +882,10 @@ void VLCMenuBar::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf,
     action->setIcon( QIcon( ":/toolbar/skip_back") );
 #endif
     action->setData( ACTION_STATIC );
-    addDPStaticEntry( menu, qtr( I_MENU_GOTOTIME ),"",
-                      SLOT( gotoTimeDialog() ), "Ctrl+T" );
+
+    action = menu->addAction( qtr( I_MENU_GOTOTIME ), THEDP, SLOT( gotoTimeDialog() ), qtr( "Ctrl+T" ) );
+    action->setData( ACTION_ALWAYS_ENABLED );
+
     menu->addSeparator();
 }
 



More information about the vlc-commits mailing list