# # # patch "src/model/Inventory.cpp" # from [23d0782e08e39c17f7928b2eb44e6ed1fec91f49] # to [9c9d01b53256247c2e4061062ef2b350d21945bf] # ============================================================ --- src/model/Inventory.cpp 23d0782e08e39c17f7928b2eb44e6ed1fec91f49 +++ src/model/Inventory.cpp 9c9d01b53256247c2e4061062ef2b350d21945bf @@ -31,12 +31,11 @@ Inventory::Inventory(QObject * parent) { rootItem = new ModelItem("__root__"); rootItem->setParent(rootItem); -/* + connect( this, SIGNAL(modelReset()), this, SLOT(setWorkspacePath()) ); -*/ } Inventory::~Inventory() @@ -283,8 +282,7 @@ void Inventory::setWorkspacePath() { QList children = rootItem->getChildren(); - // the first item is the pseudo "cdup" item - int workspaceRootRow = 1; + int workspaceRootRow = 0; I(children.size() > workspaceRootRow);