diff options
author | Pablo Barciela <[email protected]> | 2019-12-17 14:44:42 +0100 |
---|---|---|
committer | monsta <[email protected]> | 2020-01-09 14:37:35 +0300 |
commit | 95212c7ea07c7d2e48573b5cb9c62a39b5d9a321 (patch) | |
tree | d48128dd4a96f10f5a00802345343b7a968171ea | |
parent | fe73da93aa0a14ee471e7a6af7914197c41d3723 (diff) | |
download | mate-terminal-95212c7ea07c7d2e48573b5cb9c62a39b5d9a321.tar.bz2 mate-terminal-95212c7ea07c7d2e48573b5cb9c62a39b5d9a321.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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c index 5c78417..2ce1fbc 100644 --- a/src/terminal-screen.c +++ b/src/terminal-screen.c @@ -1939,7 +1939,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); |