https://bugs.kde.org/show_bug.cgi?id=483350
Nicolas Fella <nicolas.fe...@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas |ma/plasma-integration/-/com |ma/plasma-integration/-/com |mit/448b8aef5751608e6de05a8 |mit/efa61e7de254dd1184b7349 |c31741cea1035dabb |9adea5aba177e3db4 --- Comment #3 from Nicolas Fella <nicolas.fe...@gmx.de> --- Git commit efa61e7de254dd1184b73499adea5aba177e3db4 by Nicolas Fella, on behalf of Michael Weghorn. Committed on 12/03/2024 at 15:24. Pushed by nicolasfella into branch 'Plasma/6.0'. Don't truncate filter name containing parenthesis When extracting the part of the string that contains the filter name, use the part in front of the *last* parenthesis, not the first one, since otherwise the name gets truncated if it contains parenthesis itself, e.g. in a call like QFileDialog dialog; dialog.setNameFilters({"ODF Spreadsheet (.ods) (*.ods)"}); This is in line with the fact that `QPlatformFileDialogHelper::cleanFilterList` just considers those extensions in the last set of parenthesis and aligns the behavior with the non-native QFileDialog implementation that the Qt library itself provides, as well as the KF 5 implementation. (cherry picked from commit 448b8aef5751608e6de05a8c31741cea1035dabb) M +1 -1 qt6/src/platformtheme/kdeplatformfiledialoghelper.cpp https://invent.kde.org/plasma/plasma-integration/-/commit/efa61e7de254dd1184b73499adea5aba177e3db4 -- You are receiving this mail because: You are watching all bug changes.