Fix to last commit

This commit is contained in:
YuSanka 2018-09-04 09:25:54 +02:00
parent fb3a4015f6
commit af6a312fea
2 changed files with 13 additions and 12 deletions

View file

@ -480,9 +480,10 @@ wxDataViewItem PrusaObjectDataViewModel::Delete(const wxDataViewItem &item)
delete node;
// set m_containet to FALSE if parent has no child
if (node_parent && node_parent->GetChildCount() == 0){
if (node_parent) {
#ifndef __WXGTK__
node_parent->m_container = false;
if (node_parent->GetChildCount() == 0)
node_parent->m_container = false;
#endif //__WXGTK__
ret_item = parent;
}