Fix bug inadvertently introduced by previous commit
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 13 Aug 2016 07:13:42 +0000 (09:13 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 13 Aug 2016 07:13:42 +0000 (09:13 +0200)
src/ui/gui/main.c

index 6b908e0fe7a293b7a5bdfcbbfe35d47ac614b8bc..1c9c255047e82c6aa624bfc583353e0d3b6636e0 100644 (file)
@@ -221,10 +221,10 @@ on_activate (GApplication * app, gpointer ud)
   post_initialise (app);
 
   GtkWindow *x = create_data_window ();
   post_initialise (app);
 
   GtkWindow *x = create_data_window ();
+  gtk_application_add_window (GTK_APPLICATION (app), x);
   if (wsplash)
     {
       gtk_window_set_transient_for (GTK_WINDOW (wsplash), GTK_WINDOW (x));
   if (wsplash)
     {
       gtk_window_set_transient_for (GTK_WINDOW (wsplash), GTK_WINDOW (x));
-      gtk_application_add_window (GTK_APPLICATION (app), x);
       gtk_application_add_window (GTK_APPLICATION (app), GTK_WINDOW (wsplash));
       gtk_window_set_keep_above (GTK_WINDOW (wsplash), TRUE);
       gtk_window_present (GTK_WINDOW (wsplash));
       gtk_application_add_window (GTK_APPLICATION (app), GTK_WINDOW (wsplash));
       gtk_window_set_keep_above (GTK_WINDOW (wsplash), TRUE);
       gtk_window_present (GTK_WINDOW (wsplash));