summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-12-17 14:44:42 +0100
committerRobert Antoni Buj Gelonch <[email protected]>2019-12-18 15:17:05 +0100
commit9529b42518cd096c5d409cca09641aa876d86b18 (patch)
treef382db1df51f24a018c93a03b7b3d58ac25eb8b0
parent76341a3d528a2c7bdd73fb1679548cbddacb39b1 (diff)
downloadmate-terminal-9529b42518cd096c5d409cca09641aa876d86b18.tar.bz2
mate-terminal-9529b42518cd096c5d409cca09641aa876d86b18.tar.xz
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
-rw-r--r--src/terminal-screen.c3
1 files changed, 2 insertions, 1 deletions
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);