[Xfce4-commits] [apps/xfce4-terminal] 01/01: Clean the pointer to the last active tab when it gets closed
noreply at xfce.org
noreply at xfce.org
Tue Sep 25 22:02:55 CEST 2018
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-terminal.
commit 19d9970b83e1014963c87d6cb4adb86611a9712d
Author: Igor <f2404 at yandex.ru>
Date: Tue Sep 25 16:02:45 2018 -0400
Clean the pointer to the last active tab when it gets closed
---
terminal/terminal-window.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 994d649..809854e 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -2581,6 +2581,10 @@ terminal_window_do_close_tab (TerminalScreen *screen,
gtk_notebook_set_current_page (notebook, page_num);
}
+ /* clean last_active if we've just closed it */
+ if (screen == window->priv->last_active)
+ window->priv->last_active = NULL;
+
gtk_widget_destroy (GTK_WIDGET (screen));
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list