hoffmannrobert added a comment.
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. Now it's necessary to delete an already created file dialog and make a new one, if you change your mind and choose the file chooser after having selected a directory chooser, or vice versa. Otherwise it would crash. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D20197 To: hoffmannrobert, #frameworks, ngraham Cc: ngraham, kde-frameworks-devel, michaelh, bruns