From 26223327411f8091d183a7d53b3bd9fd0dd33e42 Mon Sep 17 00:00:00 2001
From: "Eric S. Raymond" <esr@thyrsus.com>
Date: Fri, 21 Apr 2000 15:33:37 +0000
Subject: This version works better.

svn path=/trunk/; revision=2887
---
 fetchmailconf | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/fetchmailconf b/fetchmailconf
index 2e0b90b5..a6600be3 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -492,7 +492,8 @@ class ListEdit(Frame):
             if item and (not entire) or (not item in self.listwidget.get(0, self.listwidget.index('end'))):
                 self.listwidget.insert('end', item)
                 if self.list != None: self.list.append(item)
-                apply(self.editor, (item,))
+                if self.editor:
+                    apply(self.editor, (item,))
             self.newval.set('')
 
     def editItem(self):
@@ -503,7 +504,8 @@ class ListEdit(Frame):
 	    index = select[0]
 	    if index and self.editor:
 		label = self.listwidget.get(index);
-		apply(self.editor, (label,))
+                if self.editor:
+                    apply(self.editor, (label,))
 
     def deleteItem(self):
 	select = self.listwidget.curselection()
@@ -1666,14 +1668,6 @@ Or you can just select `Quit' to exit the launcher now.
 """, width=600).pack(side=TOP)
 	Button(self, text='Quit', fg='blue', command=self.leave).pack()
 
-        sysversion = string.split(sys.version, " ")[0]
-        if sysversion < "1.5.2":
-            Message(self, text="""
-Warning: it looks like your Python version is older than 1.5.2.
-Double-clicking an empty listbox entry may cause fetchmailconf
-to abort (this seems to be a tkinter bug).  We recommend upgrading.
-""", width=600).pack(side=TOP)
-
     def configure(self):
         self.configbutton.configure(state=DISABLED)
         Configurator(self.outfile, Toplevel(),
-- 
cgit v1.2.3