summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-29 17:14:03 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-29 17:14:03 +0100
commit6b72c62c5f4232cd0df3acf8a678f351eb8ef6f4 (patch)
treec2133b24cb1baf6e6131290f328d360948dc3254 /Applications
parent4d3c5fd83e824fe2a3d8d56893fb65dbcccc00f0 (diff)
downloadserenity-6b72c62c5f4232cd0df3acf8a678f351eb8ef6f4.zip
GFileSystemModel: Add a "DirectoriesOnly" mode.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/FileManager/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp
index a546c3e395..3d5feec079 100644
--- a/Applications/FileManager/main.cpp
+++ b/Applications/FileManager/main.cpp
@@ -54,7 +54,7 @@ int main(int argc, char** argv)
auto* splitter = new GWidget(widget);
splitter->set_layout(make<GBoxLayout>(Orientation::Horizontal));
auto* tree_view = new GTreeView(splitter);
- tree_view->set_model(GFileSystemModel::create("/"));
+ tree_view->set_model(GFileSystemModel::create("/", GFileSystemModel::Mode::DirectoriesOnly));
tree_view->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
tree_view->set_preferred_size({ 200, 0 });
auto* directory_view = new DirectoryView(splitter);