[vlc-commits] qt: Open URL dialog: Trim URL

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


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

qt: Open URL dialog: Trim URL

refs #20171

(cherry picked from commit e38eec4a223a18fcf3ffc2d394a9c15362d23bce)
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=f7516fa921d3a8dabfe83336f26c2aa39065241b
---

 modules/gui/qt/dialogs/openurl.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/dialogs/openurl.cpp b/modules/gui/qt/dialogs/openurl.cpp
index 2e4606c371..8895879c63 100644
--- a/modules/gui/qt/dialogs/openurl.cpp
+++ b/modules/gui/qt/dialogs/openurl.cpp
@@ -83,13 +83,13 @@ OpenUrlDialog::OpenUrlDialog( intf_thread_t *_p_intf,
 void OpenUrlDialog::enqueue()
 {
     bShouldEnqueue = true;
-    lastUrl = edit->text();
+    lastUrl = edit->text().trimmed();
     accept();
 }
 
 void OpenUrlDialog::play()
 {
-    lastUrl = edit->text();
+    lastUrl = edit->text().trimmed();
     accept();
 }
 



More information about the vlc-commits mailing list