Commit f122ee06 authored by Joshua Lock's avatar Joshua Lock

brasero-app: don't try and show the main window if it hasn't been created

It's possible to open brasero without creating the main window, such as
when opening an image file directly triggering the image burning dialogue.
In these cases trying to show the main window when the dialogue is
dismissed is an error, brasero should just exit.

https://bugzilla.gnome.org/show_bug.cgi?id=655513
parent 449120e0
......@@ -2013,6 +2013,9 @@ brasero_app_run_mainwin (BraseroApp *app)
priv = BRASERO_APP_PRIVATE (app);
if (!priv->mainwin)
return FALSE;
if (priv->mainwin_running)
return TRUE;
......@@ -2055,6 +2058,8 @@ brasero_app_init (BraseroApp *object)
priv = BRASERO_APP_PRIVATE (object);
priv->mainwin = NULL;
/* Load settings */
priv->setting = brasero_setting_get_default ();
brasero_setting_load (priv->setting);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment