[recipes] Avoid a crash on fresh installs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Avoid a crash on fresh installs
- Date: Mon, 13 Feb 2017 00:12:15 +0000 (UTC)
commit 21a02c67c1e8bcf0598b93c691fcac21fadd216b
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 12 16:24:38 2017 -0500
Avoid a crash on fresh installs
We were trying, but failing, to avoid creating a chef dialog
with a NULL chef. I've never seen this crash because my own
chef is in the preinstalled data.
src/gr-window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-window.c b/src/gr-window.c
index 84cf323..8cf498f 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -701,7 +701,8 @@ gr_window_show_my_chef_information (GrWindow *window)
if (id != NULL && id[0] != '\0')
chef = gr_recipe_store_get_chef (store, id);
- else
+
+ if (chef == NULL)
chef = gr_chef_new ();
window->chef_dialog = (GtkWidget *)gr_chef_dialog_new (chef, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]