Home GnuPG

Fix filtering of certificates by a text pattern

Description

Fix filtering of certificates by a text pattern

This is a really bad incompatibility between QRegExp and QRegularExpression
in QSortFilterProxyModel.
KeyListSortFilterProxyModel now uses filterRegularExpression() which
returns the regular expression set with setFilterRegularExpression().
Setting a filter pattern with setFilterFixedString() internally sets
a QRegExp, but not a QRegularExpression. Therefore, our filter model
used an empty QRegularExpression for filtering.
Setting the filter pattern with
setFilterRegularExpression(QRegularExpression::escape(...))
instead of setFilterFixedString(...) fixes this incompatibility.

Details

Provenance
ikloeckerAuthored on Jul 15 2022, 5:42 PM
Parents
rKLEOPATRA3e82c3fd4724: Set useful accessible names for the radio buttons
Branches
Unknown
Tags
Unknown
Tasks
T6086: Kleopatra: Filtering keys doesn't work anymore