Skip to content

FileChooser: Properly handle mnemonics in 'accept_label'

The FileChooser portal doc for accept_label says:

accept_label s

The label for the accept button. Mnemonic underlines are allowed.

Since Qt does not use underscores/underlines, but the ampersand character ('&') for mnemonics, convert the retrieved text accordingly, to make the mnemonic applied at the correct position and preserve literal '&'s.

This fixes https://bugs.kde.org/show_bug.cgi?id=422340

Merge request reports