Tracker: Open parent of Desktop window but not Desktop

Tracker: Fix crash switching browser/spatial mode.
from a4a5800e5f
from b6eb4ec4ab

Change-Id: Ifdb7f64e2308189969718d62525a274bcdb53e38
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8470
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
John Scipione 2024-10-19 00:20:01 -04:00 committed by waddlesplash
parent f2dca4f0f6
commit 616d1868a6
2 changed files with 2 additions and 4 deletions

View File

@ -1554,9 +1554,7 @@ BContainerWindow::MessageReceived(BMessage* message)
break;
case kSingleWindowBrowseChanged:
if (settings.SingleWindowBrowse() && Navigator() == NULL
&& TargetModel()->IsDirectory() && !PoseView()->IsFilePanel()
&& !PoseView()->IsDesktop()) {
if (PoseView()->IsFilePanel() || PoseView()->IsDesktop()) {
SetSingleWindowBrowseShortcuts(settings.SingleWindowBrowse());
break;
}

View File

@ -8657,7 +8657,7 @@ BPoseView::OpenParent()
bool
BPoseView::ParentIsRoot()
{
if (TargetModel()->IsDesktop() || TargetModel()->IsRoot())
if (IsDesktop() || TargetModel()->IsRoot())
return true;
// override by holding control key