1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

Close On Exit and Warn On Close fixes: (a) pty_reconfig needs to

remember changes in COE so it knows whether to print a message, and
(b) once the session has already ended, Warn On Close should shut up.

[originally from svn r3102]
This commit is contained in:
Simon Tatham
2003-04-12 08:27:03 +00:00
parent c16bde1741
commit bc4e41154a
2 changed files with 8 additions and 6 deletions

View File

@ -342,7 +342,7 @@ char *get_window_title(void *frontend, int icon)
gint delete_window(GtkWidget *widget, GdkEvent *event, gpointer data)
{
struct gui_data *inst = (struct gui_data *)data;
if (inst->cfg.warn_on_close) {
if (!inst->exited && inst->cfg.warn_on_close) {
if (!reallyclose(inst))
return TRUE;
}