summaryrefslogtreecommitdiff
path: root/Applications/FileManager
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 15:43:52 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 15:46:47 +0200
commit93851c3832bb59259309ede0465be056a706df3e (patch)
tree4157375673d1b839ea5a84409bd22204744c89da /Applications/FileManager
parent4ea229accdac70e418af8f3f6d57cb5797d5dfad (diff)
downloadserenity-93851c3832bb59259309ede0465be056a706df3e.zip
LibGUI: Convert GTextBox, GTextEditor and GResizeCorner to ObjectPtr
Diffstat (limited to 'Applications/FileManager')
-rw-r--r--Applications/FileManager/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp
index a89a5b5abf..53caad0a20 100644
--- a/Applications/FileManager/main.cpp
+++ b/Applications/FileManager/main.cpp
@@ -56,7 +56,7 @@ int main(int argc, char** argv)
auto location_label = GLabel::construct("Location: ", location_toolbar);
location_label->size_to_fit();
- auto* location_textbox = new GTextEditor(GTextEditor::SingleLine, location_toolbar);
+ auto location_textbox = GTextEditor::construct(GTextEditor::SingleLine, location_toolbar);
auto* splitter = new GSplitter(Orientation::Horizontal, widget);
auto* tree_view = new GTreeView(splitter);
@@ -312,7 +312,7 @@ int main(int argc, char** argv)
main_toolbar->add_action(*view_as_icons_action);
main_toolbar->add_action(*view_as_table_action);
- directory_view->on_path_change = [window, location_textbox, &file_system_model, tree_view, &go_forward_action, &go_back_action, directory_view](const String& new_path) {
+ directory_view->on_path_change = [&](const String& new_path) {
window->set_title(String::format("File Manager: %s", new_path.characters()));
location_textbox->set_text(new_path);
auto new_index = file_system_model->index(new_path);