summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/FileSystemModel.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-09 23:02:15 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-09 23:04:04 +0200
commit8db4819271a7b84b488153e5e1ca1fca9329ad73 (patch)
tree0d65d4a0055b6f6d27bc10b42d4a892cc42d1221 /Userland/Libraries/LibGUI/FileSystemModel.h
parentbcd05e199b165594bdde6bf477f01fa4047d289a (diff)
downloadserenity-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.h1
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; }