aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/main.c')
-rw-r--r--ui/gtk/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index 14def156ba..5c54337cb6 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -3269,7 +3269,8 @@ main(int argc, char *argv[])
#ifdef _WIN32
/* hide the (unresponsive) main window, while asking the user to close the console window */
- gtk_widget_hide(top_level);
+ if (G_IS_OBJECT(top_level))
+ gtk_widget_hide(top_level);
software_update_cleanup();