diff options
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/UserSearch/ContactListModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/UserSearch/ContactListModel.cpp b/Swift/QtUI/UserSearch/ContactListModel.cpp index 936f048..db13fbc 100644 --- a/Swift/QtUI/UserSearch/ContactListModel.cpp +++ b/Swift/QtUI/UserSearch/ContactListModel.cpp @@ -81,7 +81,7 @@ int ContactListModel::columnCount(const QModelIndex&) const { } QVariant ContactListModel::data(const QModelIndex& index, int role) const { - if (boost::numeric_cast<size_t>(index.row()) < contacts_.size()) { + if ((boost::numeric_cast<size_t>(index.row()) < contacts_.size()) && (index.column() == 0)) { const Contact::ref& contact = contacts_[index.row()]; if (role == Qt::EditRole) { return P2QSTRING(contact->jid.toString()); |