From 1bcf3968f23eedab1ef87e5ee825bb5aa7af0d17 Mon Sep 17 00:00:00 2001 From: rhin123 Date: Mon, 15 Jul 2019 15:58:37 -0500 Subject: [PATCH] TextEditor: Show window after text_widget loads --- Applications/TextEditor/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Applications/TextEditor/main.cpp b/Applications/TextEditor/main.cpp index a503980901..0723bc810a 100644 --- a/Applications/TextEditor/main.cpp +++ b/Applications/TextEditor/main.cpp @@ -9,7 +9,6 @@ int main(int argc, char** argv) window->set_rect(20, 200, 640, 400); window->set_should_exit_event_loop_on_close(true); - window->show(); window->set_icon_path("/res/icons/TextEditor16.png"); auto* text_widget = new TextEditorWidget(); @@ -18,5 +17,7 @@ int main(int argc, char** argv) if (argc >= 2) text_widget->open_sesame(argv[1]); + window->show(); + return app.exec(); } \ No newline at end of file