mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 23:12:14 -07:00
Lint.
This commit is contained in:
parent
ef37bb0139
commit
18ea3b7bc8
1 changed files with 4 additions and 6 deletions
|
|
@ -84,12 +84,10 @@ bool confirmOverwriteIfExists(QWidget *parent, const QString &filePath)
|
||||||
QString newFileName = QDir::toNativeSeparators(fileInfo.path() + "/" + fileInfo.completeBaseName() + ".cod");
|
QString newFileName = QDir::toNativeSeparators(fileInfo.path() + "/" + fileInfo.completeBaseName() + ".cod");
|
||||||
|
|
||||||
if (QFile::exists(newFileName)) {
|
if (QFile::exists(newFileName)) {
|
||||||
QMessageBox::StandardButton reply = QMessageBox::question(
|
QMessageBox::StandardButton reply =
|
||||||
parent,
|
QMessageBox::question(parent, QObject::tr("Overwrite Existing File?"),
|
||||||
QObject::tr("Overwrite Existing File?"),
|
QObject::tr("A .cod version of this deck already exists. Overwrite it?"),
|
||||||
QObject::tr("A .cod version of this deck already exists. Overwrite it?"),
|
QMessageBox::Yes | QMessageBox::No);
|
||||||
QMessageBox::Yes | QMessageBox::No
|
|
||||||
);
|
|
||||||
return reply == QMessageBox::Yes;
|
return reply == QMessageBox::Yes;
|
||||||
}
|
}
|
||||||
return true; // Safe to proceed
|
return true; // Safe to proceed
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue