diff options
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/FileManager/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp index 7bba76f129..a877dc28b2 100644 --- a/Applications/FileManager/main.cpp +++ b/Applications/FileManager/main.cpp @@ -77,8 +77,8 @@ int main(int argc, char** argv) directory_view->open(location_textbox->text()); }; - file_system_model->on_selection_changed = [&](auto& index) { - auto path = file_system_model->path(index); + tree_view->on_selection_change = [&] { + auto path = file_system_model->path(tree_view->selection().first()); if (directory_view->path() == path) return; directory_view->open(path); |