summary refs log tree commit diff
path: root/src/TextInputWidget.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-27 01:57:46 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-27 01:57:46 +0300
commitb72e48cbab53743b80130758b4bdb81e5778a014 (patch)
treef281fd56ebad04a258a97e3e51056f77ac6ad700 /src/TextInputWidget.cc
parentCopy lmdb.dll in the windows installer (diff)
downloadnheko-b72e48cbab53743b80130758b4bdb81e5778a014.tar.xz
Improve room searching
fixes #257
Diffstat (limited to 'src/TextInputWidget.cc')
-rw-r--r--src/TextInputWidget.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/TextInputWidget.cc b/src/TextInputWidget.cc

index 1535f563..beae9aab 100644 --- a/src/TextInputWidget.cc +++ b/src/TextInputWidget.cc
@@ -95,10 +95,9 @@ FilteredTextEdit::FilteredTextEdit(QWidget *parent) &FilteredTextEdit::selectPreviousSuggestion, &popup_, &SuggestionsPopup::selectPreviousSuggestion); - connect(this, - &FilteredTextEdit::selectHoveredSuggestion, - &popup_, - &SuggestionsPopup::selectHoveredSuggestion); + connect(this, &FilteredTextEdit::selectHoveredSuggestion, this, [this]() { + popup_.selectHoveredSuggestion<UserItem>(); + }); previewDialog_.hide(); } @@ -459,7 +458,7 @@ TextInputWidget::TextInputWidget(QWidget *parent) QtConcurrent::run([this, q = q.toLower().toStdString()]() { try { - emit input_->resultsRetrieved(cache_->getAutocompleteMatches( + emit input_->resultsRetrieved(cache_->searchUsers( ChatPage::instance()->currentRoom().toStdString(), q)); } catch (const lmdb::error &e) { std::cout << e.what() << '\n';