Page MenuHome GnuPG

Fix crash in KSelectionModelProxy
ClosedPublic

Authored by CarlSchwan on Jul 2 2024, 4:25 PM.

Details

Summary

In debug builds, KSelectionModelProxy requires what the given selection
model has as sourceModel the same sourceModel specified in
KSelectionModelProxy constructor.

The Q_ASSERT in KSelectionModelProxy is not completely correct as when
using a QIdentityProxyModel, it will still work.

Test Plan

Run without crashing when KItemModels is build in debug mode

Diff Detail

Branch
work/carl/fix-crash
Lint
No Linters Available
Unit
No Unit Test Coverage