diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-17 07:13:37 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-17 07:13:37 +0000 |
| commit | 106f8861a5c9b0d36452d40df2f193448bbe3102 (patch) | |
| tree | ab9da79a59eacb3e5a3400827853a9b22940f535 /examples/GuiClient | |
| parent | 2301d2b812aa8100fba86d37b44c8336c5d2ce09 (diff) | |
| download | qxmpp-106f8861a5c9b0d36452d40df2f193448bbe3102.tar.gz | |
make contact search working again
Diffstat (limited to 'examples/GuiClient')
| -rw-r--r-- | examples/GuiClient/rosterItemSortFilterProxyModel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
