Fixed the "left does not quit the preferences dialog" problem in wicd-curses.
This commit is contained in:
1 parent
421c108f04
commit
a217f0fdc2
1 file changed
+2
-3
@@ -58,7 +58,7 @@ from curses_misc import *
|
|||||||
from prefs_curses import PrefsDialog
|
from prefs_curses import PrefsDialog
|
||||||
import netentry_curses
|
import netentry_curses
|
||||||
|
|
||||||
from netentry_curses import WirelessSettingsDialog, WiredSettingsDialog
|
from netentry_curses import WirelessSettingsDialog, WiredSettingsDialog,AdvancedSettingsDialog
|
||||||
|
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
@@ -922,8 +922,7 @@ class appGUI():
|
|||||||
if self.diag:
|
if self.diag:
|
||||||
if k == 'esc':
|
if k == 'esc':
|
||||||
self.restore_primary()
|
self.restore_primary()
|
||||||
if (k == 'left' and self.diag.__class__.__mro__[0] == \
|
if (k == 'left' and issubclass(self.diag.__class__,AdvancedSettingsDialog)) or k == 'meta enter':
|
||||||
type(urwid.WidgetWrap)) or k == 'meta enter':
|
|
||||||
self.diag.save_settings()
|
self.diag.save_settings()
|
||||||
self.restore_primary()
|
self.restore_primary()
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in new issue
Block a user