diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-09 23:02:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-09 23:04:04 +0200 |
commit | 8db4819271a7b84b488153e5e1ca1fca9329ad73 (patch) | |
tree | 0d65d4a0055b6f6d27bc10b42d4a892cc42d1221 /Userland/Libraries/LibGUI/FileSystemModel.h | |
parent | bcd05e199b165594bdde6bf477f01fa4047d289a (diff) | |
download | serenity-8db4819271a7b84b488153e5e1ca1fca9329ad73.zip |
LibGUI: Allow navigating into symlinked directories in FilePicker
If you double-click on a symlink to a directory while browsing with
a FilePicker, you most likely want to open the directory the symlink
points to, not open the symlink itself. So let's do that. :^)
Diffstat (limited to 'Userland/Libraries/LibGUI/FileSystemModel.h')
-rw-r--r-- | Userland/Libraries/LibGUI/FileSystemModel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/FileSystemModel.h b/Userland/Libraries/LibGUI/FileSystemModel.h index 5b10438a4a..9189a99131 100644 --- a/Userland/Libraries/LibGUI/FileSystemModel.h +++ b/Userland/Libraries/LibGUI/FileSystemModel.h @@ -79,6 +79,7 @@ public: mutable RefPtr<Gfx::Bitmap> thumbnail; bool is_directory() const { return S_ISDIR(mode); } + bool is_symlink_to_directory() const; bool is_executable() const { return mode & (S_IXUSR | S_IXGRP | S_IXOTH); } bool is_selected() const { return m_selected; } |