Skip to content
Commit 2df6dd40 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

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.

GnuPG-bug-id: 6086
parent 3e82c3fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment