Commit f122ee06 authored by Joshua Lock's avatar Joshua Lock
Browse files

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.
parent 449120e0
......@@ -2013,6 +2013,9 @@ brasero_app_run_mainwin (BraseroApp *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);
Supports Markdown
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