Skip to content

Commit

Permalink
Use a success count instead of files count
Browse files Browse the repository at this point in the history
  • Loading branch information
yannhodiesne committed Feb 17, 2023
1 parent cb42a03 commit 49e8974
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Core/DolphinQt/ConvertDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ void ConvertDialog::Convert()
return;
}

int success_count = 0;

for (const auto& file : m_files)
{
const auto original_path = file->GetFilePath();
Expand Down Expand Up @@ -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();
}

0 comments on commit 49e8974

Please sign in to comment.