kits/tracker: TFilePanel:SwitchDirectory abort if file does not exist

Change-Id: Ie8c66f50b025d788c23e2c0f8837da66244fc4e4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8960
Reviewed-by: John Scipione <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
This commit is contained in:
Pascal Abresch
2025-02-10 16:51:05 +00:00
committed by waddlesplash
parent 146617c29b
commit b6987eac0c
+3
View File
@@ -551,6 +551,9 @@ TFilePanel::SwitchDirectory(const entry_ref* ref)
if (entry.InitCheck() != B_OK)
return;
if (!entry.Exists())
return;
PoseView()->SetIsDesktop(isDesktop);
_inherited::SwitchDirectory(&setToRef);