KFileWidget: Ignore selected folders during file selection

During file selection, there's no reason to add the selected folder to the url bar (thus making it selected). User can still visually select the folder.

Instead, just ignore any selected folders and add only files. We can then delete the folder checking while loop.

This does not affect directory selection.

BUG: 271400 FIXED-IN: 6.14

Edited by Akseli Lahtinen

Merge request reports

Loading