]> git.sesse.net Git - vlc/commitdiff
Qt4 - Encode URLs in open dialog as requested. Close defect #1414.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 12 Jan 2008 08:03:00 +0000 (08:03 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 12 Jan 2008 08:03:00 +0000 (08:03 +0000)
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";
     }