URL input dialog: trim URL.
authorgregor herrmann <gregor@toastfreeware.priv.at>
Wed, 13 Sep 2017 19:12:35 +0000 (21:12 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Wed, 13 Sep 2017 19:12:35 +0000 (21:12 +0200)
src/gui/urlinputdialog.cpp

index c0cb8fdf337286fabd481639e70d59a334224bb2..23a36b988c90d08ee3dc8d01162cc124d7118a94 100644 (file)
@@ -55,7 +55,7 @@ void UrlInputDialog::textChanged(const QString& text)
 
 void UrlInputDialog::acceptClicked()
 {
-    saved_result = urlEntry->text();
+    saved_result = urlEntry->text().trimmed();
     setResult(HaveUrl);
 }