Fix conference list crash on Windows

This commit is contained in:
Julien Wadel 2022-06-27 17:10:51 +02:00
parent 93021ec567
commit d4d07ff7ab
3 changed files with 4 additions and 7 deletions

View file

@ -59,5 +59,7 @@ bool ConferenceInfoProxyListModel::filterAcceptsRow (int sourceRow, const QModel
}
bool ConferenceInfoProxyListModel::lessThan (const QModelIndex &left, const QModelIndex &right) const {
return true;
}
const ConferenceInfoModel* a = sourceModel()->data(left).value<ConferenceInfoModel*>();
const ConferenceInfoModel* b = sourceModel()->data(right).value<ConferenceInfoModel*>();
return a->getDateTimeUtc() < b->getDateTimeUtc();
}

View file

@ -61,7 +61,3 @@ bool ConferenceInfoProxyModel::filterAcceptsRow (int sourceRow, const QModelInde
}
return false;
}
bool ConferenceInfoProxyModel::lessThan (const QModelIndex &left, const QModelIndex &right) const {
return true;
}

View file

@ -52,7 +52,6 @@ public:
protected:
bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override;
bool lessThan (const QModelIndex &left, const QModelIndex &right) const override;
private: