1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 23:08:11 +00:00

FileManager: Don't crash when clicking on a forbidden directory.

This commit is contained in:
Andreas Kling 2019-02-26 00:59:37 +01:00
parent d77f8ba413
commit 51a3f20445

View file

@ -38,6 +38,10 @@ void DirectoryView::open(const String& path)
{
if (m_path == path)
return;
DIR* dirp = opendir(path.characters());
if (!dirp)
return;
closedir(dirp);
m_path = path;
reload();
if (on_path_change)