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:
@@ -1571,9 +1571,11 @@ TFilePanel::WindowActivated(bool active)
|
|||||||
|
|
||||||
|
|
||||||
BFilePanelPoseView::BFilePanelPoseView(Model *model, BRect frame, uint32 resizeMask)
|
BFilePanelPoseView::BFilePanelPoseView(Model *model, BRect frame, uint32 resizeMask)
|
||||||
: BPoseView(model, frame, kListMode, resizeMask),
|
: BPoseView(model, frame, kListMode, resizeMask)
|
||||||
fIsDesktop(false)
|
|
||||||
{
|
{
|
||||||
|
BEntry entry;
|
||||||
|
model->GetEntry(&entry);
|
||||||
|
fIsDesktop = FSIsDeskDir(&entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user