From a217f0fdc2b146a45706ba58706839a7f3d3fd58 Mon Sep 17 00:00:00 2001 From: Andrew Psaltis Date: Fri, 6 Mar 2009 15:41:19 -0500 Subject: [PATCH] Fixed the "left does not quit the preferences dialog" problem in wicd-curses. --- curses/wicd-curses.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index c5355ad..152dfeb 100755 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -58,7 +58,7 @@ from curses_misc import * from prefs_curses import PrefsDialog import netentry_curses -from netentry_curses import WirelessSettingsDialog, WiredSettingsDialog +from netentry_curses import WirelessSettingsDialog, WiredSettingsDialog,AdvancedSettingsDialog from optparse import OptionParser @@ -922,8 +922,7 @@ class appGUI(): if self.diag: if k == 'esc': self.restore_primary() - if (k == 'left' and self.diag.__class__.__mro__[0] == \ - type(urwid.WidgetWrap)) or k == 'meta enter': + if (k == 'left' and issubclass(self.diag.__class__,AdvancedSettingsDialog)) or k == 'meta enter': self.diag.save_settings() self.restore_primary() return True