Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
5f4b100c
Commit
5f4b100c
authored
Nov 28, 2021
by
Volker Krause
Browse files
Sanity-check model indexes
CI unit tests seem to hit a problem here which doesn't occur locally.
parent
8f5f1218
Pipeline
#102151
passed with stage
in 1 minute and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/healthcertificatemanager.cpp
View file @
5f4b100c
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment