From 1fec7812512a3b1f78dd10455b5b0beaf471a05d Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Mon, 13 Apr 2026 23:21:12 +0500 Subject: [PATCH] fix(ScreenshotsPage): fix QString::arg in string with no arguments Signed-off-by: Octol1ttle --- launcher/ui/pages/instance/ScreenshotsPage.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/launcher/ui/pages/instance/ScreenshotsPage.cpp b/launcher/ui/pages/instance/ScreenshotsPage.cpp index 3e4a0098f..71dc7218e 100644 --- a/launcher/ui/pages/instance/ScreenshotsPage.cpp +++ b/launcher/ui/pages/instance/ScreenshotsPage.cpp @@ -75,7 +75,8 @@ class ScreenshotsFSModel : public QFileSystemModel { bool canDropMimeData(const QMimeData* data, const Qt::DropAction action, const int row, - const int column, const QModelIndex& parent) const override + const int column, + const QModelIndex& parent) const override { const QUrl root = QUrl::fromLocalFile(rootPath()); // this disables reordering items inside the model @@ -547,10 +548,10 @@ void ScreenshotsPage::on_actionDelete_triggered() "Are you sure?") .arg(count); } else { - text = tr("You are about to delete the selected screenshot.\n" - "This may be permanent and it will be gone from the folder.\n\n" - "Are you sure?") - .arg(count); + text = + tr("You are about to delete the selected screenshot.\n" + "This may be permanent and it will be gone from the folder.\n\n" + "Are you sure?"); } const auto response =