From 9529b42518cd096c5d409cca09641aa876d86b18 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Tue, 17 Dec 2019 14:44:42 +0100 Subject: terminal-screen: Fix warning when closing window Fixes this warning running inside other terminal when closing the window if this preference is enabled: [when command exits "exit the terminal"] ** (mate-terminal:45473): CRITICAL **: 01:32:55.425: terminal_window_remove_screen: assertion 'gtk_widget_get_toplevel (GTK_WIDGET (screen)) == GTK_WIDGET (window)' failed --- src/terminal-screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/terminal-screen.c') diff --git a/src/terminal-screen.c b/src/terminal-screen.c index 55a01bc..3433c09 100644 --- a/src/terminal-screen.c +++ b/src/terminal-screen.c @@ -1949,7 +1949,8 @@ terminal_screen_child_exited (VteTerminal *terminal, int status) switch (action) { case TERMINAL_EXIT_CLOSE: - g_signal_emit (screen, signals[CLOSE_SCREEN], 0); + if ((status != 9) || (priv->override_command != NULL)) + g_signal_emit (screen, signals[CLOSE_SCREEN], 0); break; case TERMINAL_EXIT_RESTART: terminal_screen_launch_child_on_idle (screen); -- cgit v1.2.1