This fixes preselecting a filename and directory in xdg-desktop-portal-kde on the 5.14.x branch. This bug is already fixed on master by the move to KFileWidget instead of QFileDialog -- this fix is less intrusive and probably more suitable for another 5.14.x release.
BUG: 402077