diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/urlbar/urlbar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index f8d9f2ff..17be6fa0 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -641,7 +641,7 @@ void UrlBar::suggest() { if (!_box.isNull()) { - _box.data()->suggestUrls(text()); + _box.data()->suggestUrls(text().trimmed()); } } @@ -667,7 +667,7 @@ void UrlBar::refreshFavicon() void UrlBar::pasteAndGo() { - loadRequestedUrl(rApp->clipboard()->text()); + loadRequestedUrl(rApp->clipboard()->text().trimmed()); } @@ -675,7 +675,7 @@ void UrlBar::pasteAndSearch() { KService::Ptr defaultEngine = SearchEngine::defaultEngine(); if (defaultEngine) - loadRequestedUrl(KUrl(SearchEngine::buildQuery(defaultEngine, QApplication::clipboard()->text()))); + loadRequestedUrl(KUrl(SearchEngine::buildQuery(defaultEngine, QApplication::clipboard()->text().trimmed()))); } |