From b37100b2bf7feb181f429976bd3506d21afb7dd8 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 17 Jan 2010 20:07:30 +0000 Subject: [PATCH] Missed a few instances in the previous cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35134 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/InfoWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kits/tracker/InfoWindow.cpp b/src/kits/tracker/InfoWindow.cpp index a9d79d037b..79ba39bb19 100644 --- a/src/kits/tracker/InfoWindow.cpp +++ b/src/kits/tracker/InfoWindow.cpp @@ -1254,7 +1254,7 @@ AttributeView::MouseDown(BPoint point) offsetPoint.y = point.y - fIconRect.top; if (IconCache::sIconCache->IconHitTest(offsetPoint, fIconModel, kNormalIcon, B_LARGE_ICON)) { // Can't drag the trash anywhere.. - fTrackingState = FSIsTrashDir(&entry) ? open_only_track : icon_track; + fTrackingState = fModel->IsTrash() ? open_only_track : icon_track; // Check for possible double click if (abs((int32)(fClickPoint.x - point.x)) < kDragSlop @@ -2022,7 +2022,7 @@ AttributeView::BuildContextMenu(BMenu *parent) parent->AddItem(new BMenuItem("Open", new BMessage(kOpenSelection), 'O')); - if (!FSIsTrashDir(&entry)) { + if (!model.IsTrash()) { parent->AddItem(new BMenuItem("Edit name", new BMessage(kEditItem), 'E')); parent->AddSeparatorItem(); if (fModel->IsVolume()) { @@ -2037,7 +2037,7 @@ AttributeView::BuildContextMenu(BMenu *parent) item->SetEnabled(false); } else parent->AddItem(new BMenuItem("Identify", new BMessage(kIdentifyEntry))); - } else if (FSIsTrashDir(&entry)) + } else parent->AddItem(new BMenuItem("Empty Trash", new BMessage(kEmptyTrash))); BMenuItem *sizeItem = NULL;