[vlc-devel] [PATCH 2/3] qt: remove empty filter in file selector

Pierre Lamot pierre at videolabs.io
Wed Nov 29 10:22:05 CET 2017


---
 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,
-- 
2.14.1



More information about the vlc-devel mailing list