]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/open_panels.cpp
Qt4 - Encode URLs in open dialog as requested. Close defect #1414.
[vlc] / modules / gui / qt4 / components / open_panels.cpp
index b9b8c883b778aaf38ba9f3f197674782a026c479..7075fe79d8f15c16cc2fc66adf9307c8ce3996b5 100644 (file)
@@ -40,6 +40,7 @@
 #include <QCompleter>
 #include <QDirModel>
 #include <QScrollArea>
+#include <QUrl>
 
 /**************************************************************************
  * Open Files and subtitles                                               *
@@ -498,6 +499,9 @@ void NetOpenPanel::updateMRL() {
             emit methodChanged("udp-caching");
         }
     }
+
+    // Encode the boring stuffs
+    mrl = QUrl( mrl ).toEncoded();
     if( ui.timeShift->isEnabled() && ui.timeShift->isChecked() ) {
         mrl += " :access-filter=timeshift";
     }