mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Implement Warn On Close.
[originally from svn r3099]
This commit is contained in:
@ -349,10 +349,11 @@ char *get_window_title(void *frontend, int icon)
|
||||
|
||||
gint delete_window(GtkWidget *widget, GdkEvent *event, gpointer data)
|
||||
{
|
||||
/*
|
||||
* We could implement warn-on-close here if we really wanted
|
||||
* to.
|
||||
*/
|
||||
struct gui_data *inst = (struct gui_data *)data;
|
||||
if (inst->cfg.warn_on_close) {
|
||||
if (!reallyclose(inst->term))
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user