Skip to content
Commit 59ee4e7b authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

KUrlRequester: restore unnamed filter compatibility with Plasma file dialog

6e945ed1 changed the behaviour of
KUrlRequester::setFilter to not generate a name for the Qt-style filter
syntax variant if also none was given to the KDE-style variant.

The missing name in the filter though triggers a bug with Plasma's
platform QFileDialog implementation, resulting in the drop of the filter
entry.

So to restore the compatibility and matching API user expectations, the
filters, when passed to the actual file dialog instance, are preprocessed
to inject any missing explicit name. As before the name used is the
one of the filter expressions.

(cherry picked from commit 28eaf49c)
parent 15d5b57d
Pipeline #425317 passed with stage
in 22 minutes and 19 seconds
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