diff options
Diffstat (limited to 'Swift/QtUI/UserSearch/QtUserSearchWindow.cpp')
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchWindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp index b8a44e5..2b11d02 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp +++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp @@ -253,6 +253,7 @@ void QtUserSearchWindow::setResults(const std::vector<UserSearchResult>& results resultsPage_->results_->setHeaderHidden(true); delete model_; model_ = newModel; + resultsPage_->setNoResults(model_->rowCount() == 0); } void QtUserSearchWindow::setResultsForm(Form::ref results) { @@ -264,6 +265,7 @@ void QtUserSearchWindow::setResultsForm(Form::ref results) { resultsPage_->results_->header()->setResizeMode(QHeaderView::ResizeToContents); delete model_; model_ = newModel; + resultsPage_->setNoResults(model_->rowCount() == 0); } void QtUserSearchWindow::setSelectedService(const JID& jid) { |