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

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


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

qt: Network open panel: Trim MRL

Fix #20171

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a260f081a5a49ff3b4d4bd13ef1978261732ca2
---

 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 bae7b429c7..f43be234e0 100644
--- a/modules/gui/qt/components/open_panels.cpp
+++ b/modules/gui/qt/components/open_panels.cpp
@@ -720,7 +720,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