https://bugs.kde.org/show_bug.cgi?id=364086
Bug ID: 364086 Summary: KFileDialog::setMimeFilter crashes when using native widgets Product: frameworks-kdelibs4support Version: unspecified Platform: Other OS: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: general Assignee: kdelibs-b...@kde.org Reporter: jonat...@imatix.com Calling KFileDialog::setMimeFilter while using native widgets (for example on a Windows build) causes an immediate crash. Reproducible: Always Steps to Reproduce: 1.Start okular/kf5 for Windows 2.Select 'Open File' Actual Results: Application crashes Expected Results: The file chooser dialog appears The coding error is obvious. Rather than calling d->w->setMimeFilter unconditionally, it should only do so if d->native is null. While some methods in KFileDialog test d->native correctly, a number of them do not: KFileDialog::setMimeFilter KFileDialog::sizeHint KFileDialog::setConfirmOverwrite KFileDialog::okButton KFileDialog::cancelButton KFileDialog::locationEdit KFileDialog::filterWidget KFileDialog::actionCollection KFileDialog::toolBar KFileDialog::fileWidget -- You are receiving this mail because: You are watching all bug changes.