]> git.sesse.net Git - vlc/commitdiff
Qt: provide shortcuts for history items
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 10 Dec 2009 18:20:22 +0000 (19:20 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 11 Dec 2009 12:11:54 +0000 (13:11 +0100)
Recents items from 1 to 9 are supported to Ctrl+1 to Ctrl+9

modules/gui/qt4/menus.cpp

index c5e17de9f580fa515eeb766ed9b333312f870620..5bb55b4b70b2f0e75ffeb78aceaeb271d05aa667 100644 (file)
@@ -1437,8 +1437,8 @@ void QVLCMenu::updateRecents( intf_thread_t *p_intf )
             {
                 action = recentsMenu->addAction(
                         QString( "&%1: " ).arg( i + 1 ) + l.at( i ),
-                        rmrl->signalMapper,
-                        SLOT( map() ) );
+                        rmrl->signalMapper, SLOT( map() ),
+                        i <= 9 ? QString( "Ctrl+%1" ).arg( i + 1 ) : "" );
                 rmrl->signalMapper->setMapping( action, l.at( i ) );
             }