diff options
| author | TheBloke <devnull@localhost> | 2014-07-13 16:11:30 +0100 |
|---|---|---|
| committer | TheBloke <devnull@localhost> | 2014-07-13 16:11:30 +0100 |
| commit | 1707941f6ec256e1bc48edec01ea41be9526fb81 (patch) | |
| tree | e1ee404945c77a4f21b1cbbd4197a90f58fa770a | |
| parent | d0b75e8b25012c63a20ee7996654a43b280ab8cd (diff) | |
deleteSavegame:
- Confirmation question shows number of saves to be deleted, when more than 1
| -rw-r--r-- | src/mainwindow.cpp | 3 |
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) { |
