TextEditor: Add some missing curly braces around a nested if statement

This commit is contained in:
Andreas Kling 2021-05-01 18:45:20 +02:00
parent e5ceabfbbb
commit 443775754f
Notes: sideshowbarker 2024-07-18 18:48:46 +09:00

View file

@ -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();