Skip to content
Commit 267e7c63 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Don't ignore initially selected mime type filter

Otherwise QFileDialog::selectMimeTypeFilter() has no effect
if called before show()/initializeDialog() (because the mime
filters are set only in initializeDialog()).

We also need to ignore the initiallySelectedNameFilter() (which is
implicitly set) if we have an initiallySelectedMimeTypeFilter().

Test Plan:
tests/qfiledialogtest --mimeTypeFilter application/json --mimeTypeFilter application/zip --selectMimeTypeFilter application/zip

Moved the show() call in the existing unit test, now it passes.

Reviewers: #plasma, dfaure

Differential Revision: https://phabricator.kde.org/D5957
parent 0dafb940
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment