summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorYann Hodiesne <yann.hodiesne@viacesi.fr>2023-02-17 14:36:41 +0100
committerYann Hodiesne <yann.hodiesne@viacesi.fr>2023-02-17 15:49:31 +0100
commit49e897422fbf42fdb866cbcc0feaa3c0e9fe47d2 (patch)
treeddc86b907d750b226dc63368c6131c01a70d8662 /Source/Core
parentcb42a0329952471e5fe58f363b87f33adb297ee0 (diff)
Use a success count instead of files count
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/ConvertDialog.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/ConvertDialog.cpp b/Source/Core/DolphinQt/ConvertDialog.cpp
index 1535a4fe3f..85b48edb6c 100644
--- a/Source/Core/DolphinQt/ConvertDialog.cpp
+++ b/Source/Core/DolphinQt/ConvertDialog.cpp
@@ -387,6 +387,8 @@ void ConvertDialog::Convert()
return;
}
+ int success_count = 0;
+
for (const auto& file : m_files)
{
const auto original_path = file->GetFilePath();
@@ -524,11 +526,13 @@ void ConvertDialog::Convert()
tr("Dolphin failed to complete the requested action."));
return;
}
+
+ success_count++;
}
}
ModalMessageBox::information(this, tr("Success"),
- tr("Successfully converted %n image(s).", "", m_files.size()));
+ tr("Successfully converted %n image(s).", "", success_count));
close();
}