summaryrefslogtreecommitdiff
path: root/Userland/Applications/FileManager/DirectoryView.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-03-07 16:04:59 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-07 16:19:36 +0100
commita0362d827cd5c1bbda5c19335063d9d9bd6adb8e (patch)
tree2bdf7ef1056bb1bcf73adf352428e8fd8ee7a549 /Userland/Applications/FileManager/DirectoryView.cpp
parent1ccf9de6b9c10013dea663bc6315b8b819bcb478 (diff)
downloadserenity-a0362d827cd5c1bbda5c19335063d9d9bd6adb8e.zip
FileManager: Disable view change actions when directory is unreadable
Closes #3556.
Diffstat (limited to 'Userland/Applications/FileManager/DirectoryView.cpp')
-rw-r--r--Userland/Applications/FileManager/DirectoryView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/FileManager/DirectoryView.cpp b/Userland/Applications/FileManager/DirectoryView.cpp
index ceb27dce10..d5972146d8 100644
--- a/Userland/Applications/FileManager/DirectoryView.cpp
+++ b/Userland/Applications/FileManager/DirectoryView.cpp
@@ -169,7 +169,7 @@ void DirectoryView::setup_model()
add_path_to_history(model().root_path());
if (on_path_change)
- on_path_change(failed_path, false);
+ on_path_change(failed_path, false, false);
};
m_model->on_complete = [this] {
@@ -186,7 +186,7 @@ void DirectoryView::setup_model()
m_touch_action->set_enabled(can_write_in_path);
if (on_path_change)
- on_path_change(model().root_path(), can_write_in_path);
+ on_path_change(model().root_path(), true, can_write_in_path);
};
m_model->register_client(*this);