[brasero] brasero-app: don't try and show the main window if it hasn't been created
- From: Joshua Lock <joshuagl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] brasero-app: don't try and show the main window if it hasn't been created
- Date: Tue, 3 Sep 2013 10:03:21 +0000 (UTC)
commit f122ee0620380b7c21edce722cfe347f10c8c827
Author: Joshua Lock <joshua lock intel com>
Date: Tue Sep 3 11:01:26 2013 +0100
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
src/brasero-app.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/brasero-app.c b/src/brasero-app.c
index d345941..8d10781 100644
--- a/src/brasero-app.c
+++ b/src/brasero-app.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]