Skip to content

Commit d10ac87

Browse files
committed
Don't sort the character list every time a new character is added
1 parent 1176bb5 commit d10ac87

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/charselect.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,6 @@ void Courtroom::character_loading_finished()
331331
category->addChild(treeItem);
332332
}
333333

334-
ui_char_list->sortItems(0, Qt::AscendingOrder);
335-
336334
connect(char_button, &AOCharButton::clicked, this, [this, i]() { this->char_clicked(i); });
337335
connect(char_button, &AOCharButton::customContextMenuRequested, this, &Courtroom::on_char_button_context_menu_requested);
338336

@@ -343,6 +341,7 @@ void Courtroom::character_loading_finished()
343341
ao_app->generated_chars++;
344342
}
345343
}
344+
ui_char_list->sortItems(0, Qt::AscendingOrder);
346345
ui_char_list->expandAll();
347346
}
348347

0 commit comments

Comments
 (0)