Home GnuPG

Fix crash in Keyselectioncombo
5b93bddf468bUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Fix crash in Keyselectioncombo

When switching the filterRegExp and quickly thereafter
opening the combobox there could be a crash in
QSortFilterProxyModel::mapToSource.
From my understanding this was because index.internalPointer
was invalid. As the documentation says that it should
be avoided to use the internal pointer I'm doing that now.

This fixes the crash and I did not see any regressing
behavior.

Only in master because the filterRegExp switching is
only something that the NewKeyApprovalDialog utilizes.

Details

Provenance
aheineckeAuthored on Mar 27 2018, 3:28 PM
Parents
rLIBKLEOfda554b8d23e: Keyresolver: Fix reduction to single format
Branches
Unknown
Tags
Unknown