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

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


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

qt: Open URL dialog: Trim URL

refs #20171

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

 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