https://bugs.kde.org/show_bug.cgi?id=407819
Bug ID: 407819
Summary: KFileWidget returns wrong filter enabled automatic
extensions and extension used twice
Product: frameworks-kio
Version: 5.54.0
Platform: Debian testing
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Open/save dialogs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 120238
--> https://bugs.kde.org/attachment.cgi?id=120238&action=edit
Sample program to reproduce the issue
SUMMARY
(This is a follow-up for bug 407642.)
If your filter list has two matching filters for an extension, KFileWidget will
return the name of the first filter when calling
QFileDialog::selectedNameFilter(), even if the second filter was selected in
the dialog.
STEPS TO REPRODUCE
1. Compile and run the attached program
2. Make sure that "auto extension" checkbox is enabled
3. Select the last file filter (DocBook (.xml)) via dropdown list
4. Click "Save"
5. Check program output
OBSERVED RESULT
The output is "Word 2003 XML (.xml) (*.xml)"
EXPECTED RESULT
The output should be "DocBook (.xml) (*.xml)", since this was selected in the
file dialog.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
Operating System: Debian GNU/Linux 10
KDE Plasma Version: 5.14.5
Qt Version: 5.11.3
KDE Frameworks Version: 5.54.0 (+ backported fix for bug 407642 on top of kio
package)
Kernel Version: 4.19.0-5-amd64
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-6500U CPU @ 2.50GHz
Memory: 31.3 GiB of RAM
ADDITIONAL INFORMATION
I used the "kio" version from Debian testing (version 5.54.1-1) and added the
fix for bug 407642 on top for testing.
--
You are receiving this mail because:
You are watching all bug changes.