Remove list header properly
This commit is contained in:
parent
85e52de194
commit
1319c9845b
@ -211,6 +211,9 @@ void ListWidget::clearColumns()
|
|||||||
m_header.clear();
|
m_header.clear();
|
||||||
for (unsigned int n=0; n<m_header_elements.size(); n++)
|
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_header_elements[n].elementRemoved();
|
||||||
m_children.remove( m_header_elements.get(n) );
|
m_children.remove( m_header_elements.get(n) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user