# # # patch "guitone/src/model/Attributes.cpp" # from [9d7d3c65902acf25e360a889ce7bd1b05c7a42d9] # to [e1b257e954bc81db43a5d8b36a0928d1d0be2b34] # ============================================================ --- guitone/src/model/Attributes.cpp 9d7d3c65902acf25e360a889ce7bd1b05c7a42d9 +++ guitone/src/model/Attributes.cpp e1b257e954bc81db43a5d8b36a0928d1d0be2b34 @@ -49,16 +49,18 @@ bool Attributes::readAttributes(const QM // reset the view reset(); - // don't read the attributes for the workspace root and for the "upwards" - // pseudo items - // FIXME: we should really invent some general check for a special - // item or better let the item itself decide whether it can be used - // in a certain context like `item->enabled("attributes")` - if (item->isRootDirectory() || item->isCdUp() || !item->isTracked()) + if (item->isRootDirectory() || item->isCdUp()) { + qDebug("Attributes::readAttributes: item is pseudo item (root or cdup)"); return false; } + if (item->hasStatus(InventoryItem::Dropped) || !item->isTracked()) + { + qDebug("Attributes::readAttributes: item is not tracked or dropped"); + return false; + } + QStringList cmd; cmd.append("attributes"); cmd.append(item->getPath());