# # # patch "src/model/Inventory.cpp" # from [8f6f843cadf78582a2bf52f4973d7cf3ad8fa557] # to [25fe04adf835e6eafcfea37e4ad0be6803025cd2] # ============================================================ --- src/model/Inventory.cpp 8f6f843cadf78582a2bf52f4973d7cf3ad8fa557 +++ src/model/Inventory.cpp 25fe04adf835e6eafcfea37e4ad0be6803025cd2 @@ -71,9 +71,6 @@ bool Inventory::canFetchMore(const QMode // not an inventory item if (!invitem) return false; - // do we process this path already? - if (lastRequests.contains(invitem->getPath())) return false; - if (invitem->isExpanded(QueryLevel)) return false; @@ -95,9 +92,6 @@ void Inventory::fetchMore(const QModelIn // not an inventory item if (!invitem) return; - // do we process this path already? - if (lastRequests.contains(invitem->getPath())) return; - // mtn currently allows to restrict on ignored, but not on unknown // paths, check that! if (invitem->hasStatus(InventoryItem::Unknown)) return; @@ -115,8 +109,6 @@ void Inventory::readInventory(const QStr void Inventory::readInventory(const QString & path) { - lastRequests.insert(path); - I(!workspacePath.isEmpty()); QStringList cmd = QStringList() << "inventory"; @@ -263,8 +255,6 @@ void Inventory::processTaskResult(const QModelIndex index = indexFromItem(itemMap.value(queriedPath), 0); I(index.isValid()); emit dataChanged(index, index); - - lastRequests.remove(queriedPath); } QModelIndex Inventory::indexFromItem(ModelItem * item, int col) const