Change %1 to %n in a string

This commit is contained in:
Alexander Babikov
2026-01-13 17:48:16 +05:00
parent 8752656949
commit 5619dcd81a
26 changed files with 50 additions and 50 deletions

View File

@@ -271,7 +271,7 @@ VMManagerMainWindow::closeEvent(QCloseEvent *event)
{
int running = vmm->getActiveMachineCount();
if (running > 0) {
QMessageBox warningbox(QMessageBox::Icon::Warning, tr("%1 VM Manager").arg(EMU_NAME), tr("%1 machine(s) are currently active. Are you sure you want to exit the VM manager anyway?").arg(running), QMessageBox::Yes | QMessageBox::No, this);
QMessageBox warningbox(QMessageBox::Icon::Warning, tr("%1 VM Manager").arg(EMU_NAME), tr("%n machine(s) are currently active. Are you sure you want to exit the VM manager anyway?", "", running), QMessageBox::Yes | QMessageBox::No, this);
warningbox.exec();
if (warningbox.result() == QMessageBox::No) {
event->ignore();