The existing code in KDEPlatformFileDialogHelper::initializeDialog() only calls setConfirmOverwrite() to set it to false, this is a noop because the KDE dialog defaults to no confirmation.
This patch changes the behavior to always set setConfirmOverwrite() to match the DontConfirmOverwrite flag, which will produce the correct behavior no matter what the default behavior of the KDE dialog is.