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

Repository
rGPGPASS GnuPG Password Manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.