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:
committed by
waddlesplash
parent
146617c29b
commit
b6987eac0c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user