Home GnuPG

Fix beginResetModel/endResetModel warnings in UserIDProxyModel

Description

Fix beginResetModel/endResetModel warnings in UserIDProxyModel

When the source model is set, Qt runs QAbstractItemModel::beginResetModel and ::endResetModel.
In between those, we're also calling these functions. Since recently, this causes warnings to be shown.
While I'm not aware of any actual problems caused by this, this patch fixes the warnings by delaying our model reset until Qt has finished internally.

Details

Provenance
TobiasFellaAuthored on Wed, Dec 11, 1:03 PM
Parents
rLIBKLEO1f046a4ff46a: GIT_SILENT Sync po/docbooks with svn
Branches
Unknown
Tags
Unknown
References
refs/backups/work-branch-work/tobias/fix-model-warnings-1733994177