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

Don't ask twice when we want to overwrite file

parent d45b679f
......@@ -285,12 +285,7 @@ public:
// get the saveas file name
QUrl saveAsUrl
= QFileDialog::getSaveFileUrl(nullptr, i18n("Save Business Card"), QUrl::fromUserInput(fileName));
if (saveAsUrl.isEmpty()
|| (QFileInfo::exists(saveAsUrl.path())
&& (KMessageBox::warningYesNo(
i18n("%1 already exists. Do you want to overwrite it?",
saveAsUrl.path())) == KMessageBox::No))) {
if (saveAsUrl.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