Commit 05ff46fd authored by Volker Krause's avatar Volker Krause
Browse files

Sanity-check model indexes

CI unit tests seem to hit a problem here which doesn't occur locally.
parent cb6c5a0a
......@@ -104,6 +104,10 @@ int HealthCertificateManager::rowCount(const QModelIndex& parent) const
QVariant HealthCertificateManager::data(const QModelIndex &index, int role) const
if (!checkIndex(index)) {
return {};
const auto &v = m_certificates[index.row()];
switch (role) {
case Qt::DisplayRole:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment