]> git.sesse.net Git - vlc/commitdiff
Qt: recents: don't create an accelerator for MRL containing '&'
authorLudovic Fauvet <etix@videolan.org>
Thu, 11 Jul 2013 14:53:53 +0000 (16:53 +0200)
committerLudovic Fauvet <etix@videolan.org>
Thu, 11 Jul 2013 15:06:36 +0000 (17:06 +0200)
modules/gui/qt4/menus.cpp

index f9d5e85e296164ed4d334cbc33ff7c9a71d9f403..3a18923a8fe95b8209c532b48aeeb9cb709fac89 100644 (file)
@@ -1601,6 +1601,8 @@ void VLCMenuBar::updateRecents( intf_thread_t *p_intf )
                 char *psz = decode_URI_duplicate( qtu( mrl ) );
                 QString text = qfu( psz );
 
+                text.replace("&", "&&");
+
                 free( psz );
                 action = recentsMenu->addAction(
                         QString( i < 9 ? "&%1: ": "%1: " ).arg( i + 1 ) +