From d10ac870403ad68012bde24bf5ea63fe93b1f330 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Sat, 18 Apr 2026 12:55:52 -0500 Subject: [PATCH] Don't sort the character list every time a new character is added --- src/charselect.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/charselect.cpp b/src/charselect.cpp index 040bfd0e6..9a6b3ad79 100644 --- a/src/charselect.cpp +++ b/src/charselect.cpp @@ -331,8 +331,6 @@ void Courtroom::character_loading_finished() category->addChild(treeItem); } - ui_char_list->sortItems(0, Qt::AscendingOrder); - connect(char_button, &AOCharButton::clicked, this, [this, i]() { this->char_clicked(i); }); connect(char_button, &AOCharButton::customContextMenuRequested, this, &Courtroom::on_char_button_context_menu_requested); @@ -343,6 +341,7 @@ void Courtroom::character_loading_finished() ao_app->generated_chars++; } } + ui_char_list->sortItems(0, Qt::AscendingOrder); ui_char_list->expandAll(); }