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