aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-12-18 22:25:40 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-12-18 22:25:40 +0100
commit5fc206e11ea83a31e64a0359dc6d78f76d200499 (patch)
treea997cb1602599766fdaa908453ae2705e0a0691f /src/lib
parentBasic adblock FilterRule (diff)
downloadsmolbote-5fc206e11ea83a31e64a0359dc6d78f76d200499.tar.xz
Some bugfixes
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/navigation/urllineedit.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/navigation/urllineedit.cpp b/src/lib/navigation/urllineedit.cpp
index c587f43..f40d240 100644
--- a/src/lib/navigation/urllineedit.cpp
+++ b/src/lib/navigation/urllineedit.cpp
@@ -80,7 +80,11 @@ UrlLineEdit::UrlLineEdit(QWidget *parent) :
// connect signals
connect(this, SIGNAL(textEdited(QString)), this, SLOT(showCompleter(QString)));
connect(this, &QLineEdit::returnPressed, [this]() {
- emit addressEntered(QUrl::fromUserInput(this->text()));
+ if(this->text().startsWith('#')) {
+ emit searchTermEntered(this->text().mid(1));
+ } else {
+ emit addressEntered(QUrl::fromUserInput(this->text()));
+ }
m_menu->hide();
this->clearFocus();
});