Skip to content

Commit

Permalink
Remove list header properly
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed Apr 23, 2024
1 parent 85e52de commit 1319c98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/guiengine/widgets/list_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ void ListWidget::clearColumns()
m_header.clear();
for (unsigned int n=0; n<m_header_elements.size(); n++)
{
irr::gui::IGUIElement* e = m_header_elements[n].getIrrlichtElement();
if (e)
e->remove();
m_header_elements[n].elementRemoved();
m_children.remove( m_header_elements.get(n) );
}
Expand Down

0 comments on commit 1319c98

Please sign in to comment.