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
commit 51a3f20445
Notes: sideshowbarker 2024-07-19 15:37:46 +09:00

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)