[gnome-builder] layout-stack: protect against non-existant view



commit 0a8d9f10033dddf482ea3eee6b45ed84b6523822
Author: Christian Hergert <christian hergert me>
Date:   Sat Dec 12 14:59:37 2015 -0800

    layout-stack: protect against non-existant view

 libide/ide-layout-stack.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-layout-stack.c b/libide/ide-layout-stack.c
index 80f4f50..3d25c61 100644
--- a/libide/ide-layout-stack.c
+++ b/libide/ide-layout-stack.c
@@ -498,7 +498,9 @@ ide_layout_stack_set_active_view (IdeLayoutStack *self,
     {
       gtk_widget_insert_action_group (GTK_WIDGET (self), "view", NULL);
 
-      if (ide_set_weak_pointer (&self->active_view, active_view))
+      ide_set_weak_pointer (&self->active_view, active_view);
+
+      if (active_view != NULL)
         {
           GActionGroup *group;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]