mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
patch_manager: fix sorting of item counters >= 10
This only deals with less than 100 items (that amount is undesirable in the first place)
This commit is contained in:
parent
98eb0cd3f2
commit
372eff2d8f
1 changed files with 5 additions and 2 deletions
|
@ -249,9 +249,12 @@ void patch_manager_dialog::populate_tree()
|
|||
{
|
||||
if (auto only_match = matches.count() == 1 ? matches[0] : nullptr)
|
||||
{
|
||||
only_match->setText(0, q_description + QStringLiteral(" (1)"));
|
||||
only_match->setText(0, q_description + QStringLiteral(" (01)"));
|
||||
}
|
||||
visible_description += QStringLiteral(" (") + QString::number(matches.count() + 1) + QStringLiteral(")");
|
||||
const int counter = matches.count() + 1;
|
||||
visible_description += QStringLiteral(" (");
|
||||
if (counter < 10) visible_description += '0';
|
||||
visible_description += QString::number(counter) + ')';
|
||||
}
|
||||
|
||||
QTreeWidgetItem* patch_level_item = new QTreeWidgetItem();
|
||||
|
|
Loading…
Add table
Reference in a new issue