aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfetchmailconf7
1 files changed, 3 insertions, 4 deletions
diff --git a/fetchmailconf b/fetchmailconf
index 8ef9092b..807e6b4f 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -552,12 +552,11 @@ class ConfigurationEdit(Frame):
bd=2).pack(side=TOP, pady=10)
ListEdit('New Server:',
map(lambda x: x.pollname, self.configuration.servers),
- self.editSite, lf, remotehelp)
+ lambda site, m=self.mode, s=self.configuration.servers:
+ ServerEdit(m, site, s, Toplevel()),
+ lf, remotehelp)
lf.pack(fill=X)
- def editSite(self, site):
- ServerEdit(self.mode, site, self.configuration.servers, Toplevel())
-
def nosave(self):
if ConfirmQuit(self, self.mode + " configuration editor"):
self.quit()