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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user