[vlc-commits] qt: remove empty filter in file selector

Pierre Lamot git at videolan.org
Wed Nov 29 16:25:09 CET 2017


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Nov 29 10:22:05 2017 +0100| [7f60868c48a397526f94fdfc0c301db5e8583d7d] | committer: Jean-Baptiste Kempf

qt: remove empty filter in file selector

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt/dialogs_provider.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/qt/dialogs_provider.cpp b/modules/gui/qt/dialogs_provider.cpp
index 4f9f2888ca..0908152d7e 100644
--- a/modules/gui/qt/dialogs_provider.cpp
+++ b/modules/gui/qt/dialogs_provider.cpp
@@ -493,6 +493,7 @@ QStringList DialogsProvider::showSimpleOpen( const QString& help,
     }
     ADD_EXT_FILTER( fileTypes, EXTENSIONS_ALL );
     fileTypes.replace( ";*", " *");
+    fileTypes.chop(2); //remove trailling ";;"
 
     QStringList urls = getOpenURL( NULL,
         help.isEmpty() ? qtr(I_OP_SEL_FILES ) : help,



More information about the vlc-commits mailing list