https://bugs.kde.org/show_bug.cgi?id=319502
Peter Wu <pe...@lekensteyn.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|general |Open/save dialogs Version|1.0 |5.54.0 Status|REPORTED |CONFIRMED Assignee|br...@frogmouth.net |fa...@kde.org CC| |kdelibs-b...@kde.org, | |pe...@lekensteyn.nl Ever confirmed|0 |1 Product|kdialog |frameworks-kio --- Comment #6 from Peter Wu <pe...@lekensteyn.nl> --- This is still a problem with kio 5.54 / Qt 5.12.0 / Arch Linux. The important details are: - Two files have the same mask. - The mask is changed by the user before accepting the dialog. The KFileDialog class that is used by plasma-integration does not seem to respect the selected filter. Instead of reporting the actual selected filter, it seems to query for the first filter that has the same mask. The non-native Qt dialog does *not* have this problem. import sys from PyQt5.QtWidgets import QApplication, QFileDialog app = QApplication(sys.argv) filter = 'All Files (*.*);;Image (*.*);;Thing (*.txt)' options = QFileDialog.Option(0) #options = QFileDialog.DontUseNativeDialog name, newfilter = QFileDialog.getSaveFileName(None, "Title", "", filter, "", options) print(name, newfilter) Steps to reproduce: 0. Run the above Python script. 1. Enter any file name 2. Set filter to "Image" 3. Press OK. Expected results: Print the file name and "Image" Actual results: Print the filename and the first filter ("All Files"). -- You are receiving this mail because: You are watching all bug changes.