vlc | branch: master | Ludovic Fauvet <[email protected]> | Thu Jul 11 16:55:57 
2013 +0200| [13b88912ee250b6bfffe41a09e4ca14123c40e1c] | committer: Ludovic 
Fauvet

Qt: recents: hide the file:// scheme from the MRL

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

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

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 3a18923..95d83cd 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1602,6 +1602,14 @@ void VLCMenuBar::updateRecents( intf_thread_t *p_intf )
                 QString text = qfu( psz );
 
                 text.replace("&", "&&");
+#ifdef _WIN32
+# define FILE_SCHEME "file:///"
+#else
+# define FILE_SCHEME "file://"
+#endif
+                if ( text.startsWith( FILE_SCHEME ) )
+                    text.remove( 0, strlen( FILE_SCHEME ) );
+#undef FILE_SCHEME
 
                 free( psz );
                 action = recentsMenu->addAction(

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to