From: Kurt B. Kaiser Date: Tue, 16 Nov 2004 21:28:36 +0000 (+0000) Subject: Saving a Keyset w/o making changes (by using the "Save as New Custom Key Set" X-Git-Tag: v2.4c1~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5acdf9308191b6356fb3ed4ba691ba5cd391f202;p=thirdparty%2FPython%2Fcpython.git Saving a Keyset w/o making changes (by using the "Save as New Custom Key Set" button) caused IDLE to fail on restart (no new keyset was created in config-keys.cfg). Also true for Theme/highlights. Python Bug 1064535. M configDialog.py --- diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py index 35ef9ae7e062..48f22b80229e 100644 --- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -1165,6 +1165,9 @@ class ConfigDialog(Toplevel): cfgTypeHasChanges = True if cfgTypeHasChanges: idleConf.userCfg[configType].Save() + for configType in ['keys', 'highlight']: + # save these even if unchanged! + idleConf.userCfg[configType].Save() self.ResetChangedItems() #clear the changed items dict def ActivateConfigChanges(self):