[vlc-commits] Qt: recents: don't create an accelerator for MRL containing '&'

Ludovic Fauvet git at videolan.org
Thu Jul 11 17:11:05 CEST 2013


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Jul 11 16:53:53 2013 +0200| [3867805b39ae961bda3678e9f3515c01476361cb] | committer: Ludovic Fauvet

Qt: recents: don't create an accelerator for MRL containing '&'

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

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

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index f9d5e85..3a18923 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -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 ) +



More information about the vlc-commits mailing list