diff options
author | Andreas Kling <kling@serenityos.org> | 2020-10-22 18:27:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-22 18:27:28 +0200 |
commit | 460d3e39692541ff8912c3fd899d03309752e97d (patch) | |
tree | 70a4e95ff675d7b706738a487f3d3a683e3ece59 | |
parent | 39a7358b5158a3164deb540b34b9028bfccbda42 (diff) | |
download | serenity-460d3e39692541ff8912c3fd899d03309752e97d.zip |
FileManager: Update the error label overlay on back/forward navigation
Fixes #3817.
-rw-r--r-- | Applications/FileManager/DirectoryView.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Applications/FileManager/DirectoryView.cpp b/Applications/FileManager/DirectoryView.cpp index 3b3d939550..1beac3bbb4 100644 --- a/Applications/FileManager/DirectoryView.cpp +++ b/Applications/FileManager/DirectoryView.cpp @@ -372,6 +372,7 @@ void DirectoryView::refresh() void DirectoryView::open_previous_directory() { if (m_path_history_position > 0) { + set_active_widget(¤t_view()); m_path_history_position--; model().set_root_path(m_path_history[m_path_history_position]); } @@ -379,6 +380,7 @@ void DirectoryView::open_previous_directory() void DirectoryView::open_next_directory() { if (m_path_history_position < m_path_history.size() - 1) { + set_active_widget(¤t_view()); m_path_history_position++; model().set_root_path(m_path_history[m_path_history_position]); } |