.first() wasn't guarded with a check of
the list size.
BUG: 416397
FIXED-IN: 5.18.0
ngraham |
Plasma |
.first() wasn't guarded with a check of
the list size.
BUG: 416397
FIXED-IN: 5.18.0
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
FWIW, for this you could have used QList::value(0), it would have saved quite a bit of boilerplate.
https://doc.qt.io/qt-5/qlist.html#value