summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-01 18:45:20 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-01 19:42:29 +0200
commit443775754f89230d2eead0e629b7af4346b724fc (patch)
tree945fd636afab1eb93321ff40ab3e90640868929a /Userland
parente5ceabfbbb0df2d2452746815647875b9c2419bc (diff)
downloadserenity-443775754f89230d2eead0e629b7af4346b724fc.zip
TextEditor: Add some missing curly braces around a nested if statement
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/TextEditor/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Applications/TextEditor/main.cpp b/Userland/Applications/TextEditor/main.cpp
index eaf23e8a57..6451c53912 100644
--- a/Userland/Applications/TextEditor/main.cpp
+++ b/Userland/Applications/TextEditor/main.cpp
@@ -70,9 +70,10 @@ int main(int argc, char** argv)
text_widget.initialize_menubar(menubar);
window->set_menubar(menubar);
- if (file_to_edit)
+ if (file_to_edit) {
if (!text_widget.open_file(file_to_edit))
return 1;
+ }
text_widget.update_title();