fix(ScreenshotsPage): fix QString::arg in string with no arguments

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-04-13 23:21:12 +05:00
parent 08de904e21
commit 1fec781251
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF

View file

@ -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 =