Skip to content

Commit a7d292b

Browse files
committed
avoid detaching temporary container
1 parent 0bd3ddf commit a7d292b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/charselect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ void Courtroom::filter_character_list()
352352
for (int i = 0; i < char_list.size(); i++)
353353
{
354354
AOCharButton *current_char = ui_char_button_list.at(i);
355-
QTreeWidgetItem *current_char_list_item = ui_char_list->findItems(QString::number(i), Qt::MatchExactly | Qt::MatchRecursive, 1)[0];
355+
QTreeWidgetItem *current_char_list_item = ui_char_list->findItems(QString::number(i), Qt::MatchExactly | Qt::MatchRecursive, 1).at(0);
356356

357357
// It seems passwording characters is unimplemented yet?
358358
// Until then, this will stay here, I suppose.

0 commit comments

Comments
 (0)