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 c0cb8fd..23a36b9 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);
 }