aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-xfetchmailconf14
1 files 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(),