michaelweghorn added a comment.
In D20197#443689 <https://phabricator.kde.org/D20197#443689>, @hoffmannrobert wrote: > Thanks, I've learned that QFileDialog only creates a well behaving directory chooser, if the QFileDialog::ShowDirsOnly option is set to true _after_ having set the fileMode to QFileDialog::Directory. If you do it the other way around, it doesn't add directories to the selection. As a side note (not directly related to the change being discussed here): I think this is a bug in kio/plasma-integration, since the way this needs to be done with the native Plasma file dialog is inconsistent with what the non-native Qt dialog does, s. https://bugs.kde.org/show_bug.cgi?id=406464 . REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D20197 To: hoffmannrobert, #frameworks, ngraham, dfaure Cc: michaelweghorn, ngraham, kde-frameworks-devel, michaelh, bruns