summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2004-11-16 21:28:36 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2004-11-16 21:28:36 (GMT)
commit5acdf9308191b6356fb3ed4ba691ba5cd391f202 (patch)
treef467e0631381332e886ca3331cdee6cc760b4c41 /Lib/idlelib
parent49d4213974413af5b15ef5f7d60b1d60caf46d73 (diff)
downloadcpython-5acdf9308191b6356fb3ed4ba691ba5cd391f202.zip
cpython-5acdf9308191b6356fb3ed4ba691ba5cd391f202.tar.gz
cpython-5acdf9308191b6356fb3ed4ba691ba5cd391f202.tar.bz2
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
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/configDialog.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py
index 35ef9ae..48f22b8 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):