# # # patch "src/model/InventoryItem.cpp" # from [b1414460c78705b725b01eb9455dbc74220c0bc3] # to [da1dbcf421b48be5faff31386c36328b1190092b] # ============================================================ --- src/model/InventoryItem.cpp b1414460c78705b725b01eb9455dbc74220c0bc3 +++ src/model/InventoryItem.cpp da1dbcf421b48be5faff31386c36328b1190092b @@ -508,7 +508,12 @@ bool InventoryItem::isExpanded(int level return expanded; } - I(childCount() > 0); + if (childCount() == 0) + { + W(QString("node %1 has no children").arg(getPath())); + return false; + } + foreach (ModelItem * child, children) { InventoryItem * invitem = dynamic_cast(child);