summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorangel <angel@ttm.sh>2020-04-22 11:53:19 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-22 12:12:32 +0200
commit0d47ad7efea4c82d9ffeed3dba16ddb448b77a17 (patch)
tree3436210c4b4510fd698e4b0d6131f9517dfe4235
parentcc424b7b0f2cf982667f0dc0a0763d50a189efe7 (diff)
downloadserenity-0d47ad7efea4c82d9ffeed3dba16ddb448b77a17.zip
FileManager: Exit the application cleanly when failing to open initial directory
Co-Authored-By: Andreas Kling <kling@serenityos.org>
-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 0fa3dfd584..9c3beb1d77 100644
--- a/Applications/FileManager/main.cpp
+++ b/Applications/FileManager/main.cpp
@@ -593,7 +593,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
GUI::MessageBox::show(error_message, "File Manager", GUI::MessageBox::Type::Error);
if (quit)
- exit(1);
+ app.quit(1);
};
directory_view.on_status_message = [&](const StringView& message) {