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:
parent
4d12369dce
commit
a41067fcb4
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user