- QModelIndex source_index = mapToSource(index);
- Message::Flags flags = (Message::Flags)sourceModel()->data(source_index, MessageModel::FlagsRole).toInt();
- flags &= ~Message::Highlight;
- return (int)flags;
+QVariant AwayLogFilter::data(const QModelIndex &index, int role) const
+{
+ if (role != MessageModel::FlagsRole)
+ return ChatMonitorFilter::data(index, role);
+
+ QModelIndex source_index = mapToSource(index);
+ Message::Flags flags = (Message::Flags)sourceModel()->data(source_index, MessageModel::FlagsRole).toInt();
+ flags &= ~Message::Highlight;
+ return (int)flags;