Commit 442ca9ad authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't ask twice if we want to overwrite file

parent 19d57bf7
......@@ -237,15 +237,6 @@ void KWatchGnuPGMainWindow::slotSaveAs()
return;
}
QFile file(filename);
if (file.exists()) {
if (KMessageBox::Yes !=
KMessageBox::warningYesNo(this, i18n("The file named \"%1\" already "
"exists. Are you sure you want "
"to overwrite it?", filename),
i18n("Overwrite File"), KStandardGuiItem::overwrite(), KStandardGuiItem::cancel())) {
return;
}
}
if (file.open(QIODevice::WriteOnly)) {
QTextStream(&file) << mCentralWidget->text();
} else
......
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