Commit a7b291ef9dcd1f18a5b86c2859ab526f4c617cfa
1 parent
4c28066d
Exists in
master
and in
4 other branches
Fixing terminal cleanup.
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
src/objects/window/terminal.c
| @@ -149,8 +149,14 @@ | @@ -149,8 +149,14 @@ | ||
| 149 | 149 | ||
| 150 | GAction * action = g_action_map_lookup_action(G_ACTION_MAP(window), actions[ix]); | 150 | GAction * action = g_action_map_lookup_action(G_ACTION_MAP(window), actions[ix]); |
| 151 | 151 | ||
| 152 | - if(action && PW3270_IS_ACTION(action)) { | ||
| 153 | - pw3270_action_set_terminal_widget(action,NULL); | 152 | + if(action) { |
| 153 | + | ||
| 154 | + if(PW3270_IS_ACTION(action)) { | ||
| 155 | + pw3270_action_set_terminal_widget(action,NULL); | ||
| 156 | + } else if(V3270_IS_ACTION(action)) { | ||
| 157 | + v3270_action_set_terminal_widget(action,NULL); | ||
| 158 | + } | ||
| 159 | + | ||
| 154 | } | 160 | } |
| 155 | 161 | ||
| 156 | } | 162 | } |