# # # patch "src/model/InventoryProxyModel.cpp" # from [393bb69eb2f52c89fc321794fb12c127e5c3030c] # to [b4531dc89174ea0f575c1764c5ce302996e39049] # ============================================================ --- src/model/InventoryProxyModel.cpp 393bb69eb2f52c89fc321794fb12c127e5c3030c +++ src/model/InventoryProxyModel.cpp b4531dc89174ea0f575c1764c5ce302996e39049 @@ -35,6 +35,10 @@ bool InventoryProxyModel::filterAcceptsR if (!index.isValid()) return false; ModelItem * item = static_cast(index.internalPointer()); + // always return the root item + if (item->isRoot()) + return true; + PseudoItem * psitem = dynamic_cast(item); if (psitem) { @@ -44,10 +48,6 @@ bool InventoryProxyModel::filterAcceptsR if (psitem->isCdUp()) return !folderTree && sourceParent.parent().isValid(); - // always return the root item - if (psitem->isRoot()) - return true; - I(false); }