[gnome-builder] session: drop active count if page is not saveable
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] session: drop active count if page is not saveable
- Date: Thu, 8 Jul 2021 01:08:41 +0000 (UTC)
commit 07d306bb40ee8375cc8a2f236165c78af364cf84
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 7 18:08:33 2021 -0700
session: drop active count if page is not saveable
src/libide/gui/ide-session.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-session.c b/src/libide/gui/ide-session.c
index 3ab54962b..6bad3f6f9 100644
--- a/src/libide/gui/ide-session.c
+++ b/src/libide/gui/ide-session.c
@@ -774,7 +774,10 @@ foreach_page_in_grid_save_cb (GtkWidget *widget,
/* It's not a saveable page. */
if (addin == NULL)
- return;
+ {
+ s->active--;
+ return;
+ }
save_page = g_slice_new0 (SavePage);
save_page->task = g_object_ref (task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]