1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-23 14:42:29 +01:00

Fixed the "left does not quit the preferences dialog" problem in wicd-curses.

This commit is contained in:
Andrew Psaltis
2009-03-06 15:41:19 -05:00
parent 421c108f04
commit a217f0fdc2

View File

@@ -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