Fix crash in Keyselectioncombo

Authored by aheinecke on Mar 27 2018, 1:28 PM.

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.

GnuPG-Bug-Id: T3861

Details

Committed
aheineckeMar 27 2018, 1:35 PM
Parents
R90:fda554b8d23e: Keyresolver: Fix reduction to single format
Branches
Unknown
Tags
Unknown