From 106f8861a5c9b0d36452d40df2f193448bbe3102 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Sun, 17 Oct 2010 07:13:37 +0000 Subject: make contact search working again --- examples/GuiClient/rosterItemSortFilterProxyModel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/GuiClient') diff --git a/examples/GuiClient/rosterItemSortFilterProxyModel.cpp b/examples/GuiClient/rosterItemSortFilterProxyModel.cpp index 9b55883a..3cc8b7dd 100644 --- a/examples/GuiClient/rosterItemSortFilterProxyModel.cpp +++ b/examples/GuiClient/rosterItemSortFilterProxyModel.cpp @@ -78,6 +78,9 @@ bool rosterItemSortFilterProxyModel::lessThan(const QModelIndex &left, const QMo bool rosterItemSortFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex& source_parent) const { + if(!filterRegExp().isEmpty()) + return QSortFilterProxyModel::filterAcceptsRow(source_row, source_parent); + if(m_showOfflineContacts) return true; -- cgit v1.2.3