Bug 348213 - KFileDialog fails to be a proper system file dialog replacement for Qt4's QFileDialog
Summary: KFileDialog fails to be a proper system file dialog replacement for Qt4's QFi...
Status: RESOLVED FIXED
Alias: None
Product: kfile
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-25 18:59 UTC by Antony Lee
Modified: 2018-04-09 23:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antony Lee 2015-05-25 18:59:07 UTC
Qt4's QFileDialog staticmethods (getOpenFileName, etc.) use the system file dialogs by default (KFileDialog).  Unfortunately, KFileDialog does not respect the "selectedFilter" parameter.

Reproducible: Always

Steps to Reproduce:
1. Run: python3 -c 'from PyQt4.Qt import QApplication, QFileDialog; app = QApplication([]); QFileDialog.getOpenFileNameAndFilter(filter="Source (*.py);;Text (*.txt)", initialFilter="Text (*.txt)")'

Actual Results:  
A file dialog appears with "Source" as default filter.

Expected Results:  
A file dialog appears with "Text" as default filter.

Running Arch Linux standard packages.
Comment 1 Nate Graham 2018-04-09 21:14:30 UTC
Does this reproduce using the KDE Frameworks 5 version?
Comment 2 Antony Lee 2018-04-09 22:16:13 UTC
The issue indeed appears to be fixed as of now.