Commit d45b679f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't ask twice if we want to overwrite file

parent ca70bff3
......@@ -1057,13 +1057,7 @@ public:
// get the saveas file name
const QString saveAsFile = QFileDialog::getSaveFileName(nullptr, i18n("Save Invitation Attachment"), name, QString());
if (saveAsFile.isEmpty()
|| (QFileInfo::exists(saveAsFile)
&& (KMessageBox::warningContinueCancel(
nullptr,
xi18nc("@info",
"File <filename>%1</filename> exists.<nl/> Do you want to replace it?",
saveAsFile)) != KMessageBox::Continue))) {
if (saveAsFile.isEmpty()) {
return false;
}
......
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