Fix some compilation warnings

This commit is contained in:
Tobias Fella
2022-09-23 00:21:08 +02:00
parent ef40f5a747
commit c007961ef6
3 changed files with 3 additions and 2 deletions

View File

@@ -8,6 +8,7 @@
bool CollapseStateProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
{
Q_UNUSED(source_parent);
return sourceModel()->data(sourceModel()->index(source_row, 0), MessageEventModel::EventTypeRole)
!= QLatin1String("state") // If this is not a state, show it
|| sourceModel()->data(sourceModel()->index(source_row + 1, 0), MessageEventModel::EventTypeRole)