Skip to content

Remove duplicate confirmation dialog when overwriting a file during backup

Shivodit Gill requested to merge shivodayt/basket:duplicate_dialog into master

When backing up notes from the Basket > Backup and restore > Backup option, if we choose a file name that already exists in the chosen backup directory, Basket will show two confirmation dialogs for overwriting the existing file, instead of just one dialog.

Since the QFileDialog already provides a confirmation dialog for overwriting existing files, we can remove the second dialog provided by KMessageBox::questionYesNoCancel(). Removing the second dialog will also help port away from the deprecated KMessageBox::questionYesNoCancel() method.

Merge request reports