~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Close On Exit and Warn On Close fixes: (a) pty_reconfig needs to
[sgt/putty]
/
unix
/
pterm.c
diff --git
a/unix/pterm.c
b/unix/pterm.c
index
d787da9
..
f2e8b12
100644
(file)
--- a/
unix/pterm.c
+++ b/
unix/pterm.c
@@
-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;
}