[vlc-commits] qt: Network open panel: Trim MRL

Hugo Beauzée-Luyssen git at videolan.org
Tue Mar 27 12:08:57 CEST 2018


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Mar 27 12:03:13 2018 +0200| [31b7e511474aa8aee93d3e6de60b4a3194d21ae0] | committer: Hugo Beauzée-Luyssen

qt: Network open panel: Trim MRL

Fix #20171

(cherry picked from commit 8a260f081a5a49ff3b4d4bd13ef1978261732ca2)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=31b7e511474aa8aee93d3e6de60b4a3194d21ae0
---

 modules/gui/qt/components/open_panels.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/open_panels.cpp b/modules/gui/qt/components/open_panels.cpp
index 1778c8bae9..92b3522cc0 100644
--- a/modules/gui/qt/components/open_panels.cpp
+++ b/modules/gui/qt/components/open_panels.cpp
@@ -719,7 +719,7 @@ void NetOpenPanel::onFocus()
 
 void NetOpenPanel::updateMRL()
 {
-    QString url = ui.urlComboBox->lineEdit()->text();
+    QString url = ui.urlComboBox->lineEdit()->text().trimmed();
 
     emit methodChanged( qfu( "network-caching" ) );
 



More information about the vlc-commits mailing list