[vlc-commits] Qt: recent menus, fix shortcut

Jean-Baptiste Kempf git at videolan.org
Mon Oct 10 12:01:26 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct 10 11:50:43 2011 +0200| [b01953136e98a16c891230178dcdac27869ec177] | committer: Jean-Baptiste Kempf

Qt: recent menus, fix shortcut

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

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

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 197bb88..f82f0cd 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1524,10 +1524,10 @@ void QVLCMenu::updateRecents( intf_thread_t *p_intf )
                 char *psz_temp = decode_URI_duplicate( qtu( l.at( i ) ) );
 
                 action = recentsMenu->addAction(
-                        QString( "&%1: " ).arg( i + 1 ) +
+                        QString( i < 9 ? "&%1: ": "%1: " ).arg( i + 1 ) +
                             QApplication::fontMetrics().elidedText( psz_temp, Qt::ElideLeft, 400 ),
                         rmrl->signalMapper, SLOT( map() ),
-                        i <= 9 ? QString( "Ctrl+%1" ).arg( i + 1 ) : "" );
+                        i < 9 ? QString( "Ctrl+%1" ).arg( i + 1 ) : "" );
                 rmrl->signalMapper->setMapping( action, l.at( i ) );
 
                 free( psz_temp );



More information about the vlc-commits mailing list