From 16187cf05fc1ea7309ac57998aa22e7f4bf80162 Mon Sep 17 00:00:00 2001 From: Florian Kohlmayer Date: Fri, 12 Dec 2014 16:17:14 +0100 Subject: [PATCH] Bugfix: show main window after registering listener --- src/gui/org/deidentifier/arx/gui/Main.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/org/deidentifier/arx/gui/Main.java b/src/gui/org/deidentifier/arx/gui/Main.java index f923420c0d..4d840e13d0 100644 --- a/src/gui/org/deidentifier/arx/gui/Main.java +++ b/src/gui/org/deidentifier/arx/gui/Main.java @@ -66,10 +66,9 @@ public static void main(final String[] args) { splash = new MainSplash(display, monitor); splash.show(); - // Main window + // Create main window main = new MainWindow(display, monitor); - main.show(); - + // Handler for loading a project if (args.length > 0 && args[0].endsWith(".deid")) { main.onShow(new Runnable() { @@ -79,6 +78,9 @@ public void run(){ }); } + // Show window + main.show(); + // Main event loop while (!main.isDisposed()) { try {