# # # patch "src/view/InventoryView.cpp" # from [e6a2b0542a11473d1953ed2ea2f86deabb11abc3] # to [8104c73eb4fd60d9b8eb5363109b7abdc1953f83] # ============================================================ --- src/view/InventoryView.cpp e6a2b0542a11473d1953ed2ea2f86deabb11abc3 +++ src/view/InventoryView.cpp 8104c73eb4fd60d9b8eb5363109b7abdc1953f83 @@ -313,7 +313,12 @@ void InventoryView::slotContextMenuReque if (invitem->hasChangedRecursive()) { menu.addAction(actCommit); - menu.addAction(actRevisionDiff); + + if (invitem->isDirectory() && + invitem->getFSType() == InventoryItem::Directory) + { + menu.addAction(actRevisionDiff); + } } // FIXME: we currently exclude the workspace root for this. @@ -340,8 +345,8 @@ void InventoryView::slotContextMenuReque } } - if (invitem->hasNotStatus(InventoryItem::Added) && - !invitem->isDirectory()) + if (invitem->getFSType() == InventoryItem::File && + invitem->hasNotStatus(InventoryItem::Added)) { menu.addAction(actFileHistory); }