QFileDialog's getSaveFileName defaults to asking the user for confirmation when an existing file is selected (as it will likely be overwritten)... except when it delegates to the KDE5's native dialog, which defaults to no confirmation asked. Reproducible: Always Steps to Reproduce: 1. check that `kfiledialog --getsavefilename .` or `python -c 'from PyQt5.QtWidgets import *; app = QApplication([]); QFileDialog.getSaveFileName()'` don't ask the user for confirmation when an existing file is selected. 2. check that `python -c 'from PyQt5.QtWidgets import *; app = QApplication([]); QFileDialog.getSaveFileName(options=QFileDialog.DontUseNativeDialog)'` DOES prompt the user for confirmation in such a case. Actual Results: (see above) Expected Results: KFileDialog should prompt for confirmation when the user selects a file for overwriting. I believe that under KDE4, confirmation was on by default.
I submitted a patch for this issue to phabricator but I don’t know if/when it will be merged: https://phabricator.kde.org/D807
aacid reported on the phab commit that "As far as i can see this was never commited and now does not apply anymore." Can you please confirm this is no longer an issue so we can either resolve or further investigate this patch, thanks.
This is no longer an issue AFAICS.
Thanks for the feedback Antony, I'll marked this as resolved but feel free to open a new bug report if the issue returns.