diff options
Diffstat (limited to 'src/addressbar')
-rw-r--r-- | src/addressbar/urllineedit.cpp | 4 | ||||
-rw-r--r-- | src/addressbar/urllineedit.h | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/addressbar/urllineedit.cpp b/src/addressbar/urllineedit.cpp index d38acdc..e2cb7a5 100644 --- a/src/addressbar/urllineedit.cpp +++ b/src/addressbar/urllineedit.cpp @@ -55,8 +55,8 @@ UrlLineEdit::UrlLineEdit(const QHash<QString, QString> &config, QWidget *parent) // connect signals connect(this, &QLineEdit::returnPressed, [this]() { - if(this->text().startsWith('#')) { - emit searchTermEntered(this->text().mid(1)); + if(this->text().startsWith('#')) {; + m_view->search(this->text().mid(1)); } else { if(m_view) { m_view->load(QUrl::fromUserInput(this->text())); diff --git a/src/addressbar/urllineedit.h b/src/addressbar/urllineedit.h index 1fe3d3c..d3753f4 100644 --- a/src/addressbar/urllineedit.h +++ b/src/addressbar/urllineedit.h @@ -31,7 +31,6 @@ public: }; signals: - void searchTermEntered(const QString &term); void complete(const QString &term); public slots: |