diff options
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 4972fbf00..faf22de51 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -2379,7 +2379,12 @@ void BuddyFilterModel::repopulate() QVariant BuddyFilterModel::data(const QModelIndex &index, int role) const { - return QStringListModel::data(index, role); + if (role == Qt::CheckStateRole) { + return checkState[index.row()] ? Qt::Checked : Qt::Unchecked; + } else if (role == Qt::DisplayRole) { + return stringList()[index.row()]; + } + return QVariant(); } |