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 b9b8c88..7075fe7 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";
     }