Commit 194fb4de authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[File Chooser Portal] Confirm overwrite on saving

BUG: 404719
FIXED-IN: 5.15.3

Differential Revision: https://phabricator.kde.org/D19441
parent 24be64bb
......@@ -277,6 +277,7 @@ uint FileChooserPortal::SaveFile(const QDBusObjectPath &handle,
fileDialog->setWindowTitle(title);
fileDialog->setModal(modalDialog);
fileDialog->m_fileWidget->setOperationMode(KFileWidget::Saving);
fileDialog->m_fileWidget->setConfirmOverwrite(true);
if (!currentFolder.isEmpty()) {
fileDialog->m_fileWidget->setUrl(QUrl::fromLocalFile(currentFolder));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment