[gnome-builder] view-stack: ignore requests to set active view after destroy
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] view-stack: ignore requests to set active view after destroy
- Date: Sun, 3 May 2015 19:19:14 +0000 (UTC)
commit 70eabc0f5078b7b9b95f7ebfc64a746386f5ed83
Author: Christian Hergert <christian hergert me>
Date: Sun May 3 12:19:08 2015 -0700
view-stack: ignore requests to set active view after destroy
If we are already in a destroy procedure, ignore any request to change
the active view, as there isn't anything we can do.
src/views/gb-view-stack.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/views/gb-view-stack.c b/src/views/gb-view-stack.c
index f524cb4..f179e57 100644
--- a/src/views/gb-view-stack.c
+++ b/src/views/gb-view-stack.c
@@ -588,6 +588,9 @@ gb_view_stack_set_active_view (GbViewStack *self,
g_return_if_fail (GB_IS_VIEW_STACK (self));
g_return_if_fail (!active_view || GB_IS_VIEW (active_view));
+ if (self->destroyed)
+ return;
+
if (self->active_view != active_view)
{
if (self->active_view)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]