summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTheBloke <devnull@localhost>2014-07-13 16:11:30 +0100
committerTheBloke <devnull@localhost>2014-07-13 16:11:30 +0100
commitbfb3385e4932530928cff5a94ad56d8f30e5babe (patch)
treee1ee404945c77a4f21b1cbbd4197a90f58fa770a /src
parentf59f52501c1f4bf160075dc4439f5af883f730e1 (diff)
deleteSavegame:
- Confirmation question shows number of saves to be deleted, when more than 1
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index aed95616..d6cef2dc 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3901,7 +3901,8 @@ void MainWindow::deleteSavegame_clicked()
bool multipleRows = (selectedIndexes.count() > 1);
- if (QMessageBox::question(this, tr("Confirm"), tr("Are you sure you want to remove the following save%1?<br><ul>%2</ul><br>Removed saves will be sent to the Recycle Bin.")
+ if (QMessageBox::question(this, tr("Confirm"), tr("Are you sure you want to remove the following %1save%2?<br><ul>%3</ul><br>Removed saves will be sent to the Recycle Bin.")
+ .arg((multipleRows) ? QString::number(selectedIndexes.count()) + " " : "")
.arg((multipleRows) ? "s" : "")
.arg(savesMsgLabel),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {