When initializing a file panel, check if the view is being targetted at the desktop. If so we need to flag appropriately as we need a different iterator which will also return the volume poses. Fixes ticket #4073.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31472 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2009-07-08 23:22:38 +00:00
parent 4d12369dce
commit a41067fcb4

View File

@ -1571,9 +1571,11 @@ TFilePanel::WindowActivated(bool active)
BFilePanelPoseView::BFilePanelPoseView(Model *model, BRect frame, uint32 resizeMask)
: BPoseView(model, frame, kListMode, resizeMask),
fIsDesktop(false)
: BPoseView(model, frame, kListMode, resizeMask)
{
BEntry entry;
model->GetEntry(&entry);
fIsDesktop = FSIsDeskDir(&entry);
}