Commit b41631b2 authored by Marijan Smetko's avatar Marijan Smetko 😃 Committed by Nate Graham
Browse files

Add file overwrite prompt when saving a file

BUG: 420528
FIXED-IN: 20.08.0
parent f3322d13
...@@ -108,6 +108,7 @@ struct GvCorePrivate ...@@ -108,6 +108,7 @@ struct GvCorePrivate
DialogGuard<KFileCustomDialog> dialog(mMainWindow); DialogGuard<KFileCustomDialog> dialog(mMainWindow);
KFileWidget* fileWidget = dialog->fileWidget(); KFileWidget* fileWidget = dialog->fileWidget();
dialog->setCustomWidget(JPEGQualityChooserWidget); dialog->setCustomWidget(JPEGQualityChooserWidget);
fileWidget->setConfirmOverwrite(true);
dialog->setOperationMode(KFileWidget::Saving); dialog->setOperationMode(KFileWidget::Saving);
dialog->setWindowTitle(i18nc("@title:window", "Save Image")); dialog->setWindowTitle(i18nc("@title:window", "Save Image"));
// Temporary workaround for selectUrl() not setting the // Temporary workaround for selectUrl() not setting the
......
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