From f3180afca8b631a8b35e056814e9e2d3ef894101 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 17 May 1999 14:48:10 +0000 Subject: Fix fetchmailconf to handle window-manager destroy notifications. svn path=/trunk/; revision=2482 --- fetchmailconf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fetchmailconf') diff --git a/fetchmailconf b/fetchmailconf index daf8c220..25b88e8f 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -647,6 +647,7 @@ class ConfigurationEdit(Frame, MyWidget): Frame.__init__(self, self.container) self.master.title('fetchmail ' + self.mode + ' configurator'); self.master.iconname('fetchmail ' + self.mode + ' configurator'); + self.master.protocol('WM_DELETE_WINDOW', self.nosave) self.keepalive = [] # Use this to anchor the PhotoImage object make_icon_window(self, fetchmail_gif) Pack.config(self) @@ -1431,8 +1432,6 @@ Or you can just select `Quit' to leave the configurator now and return to the main panel. """, width=600).pack(side=TOP) Button(self, text='Quit', fg='blue', command=self.leave).pack() - - # FIXME: This should intercept window-destruction requests. master.protocol("WM_DELETE_WINDOW", self.leave) def novice(self): -- cgit v1.2.3