[Python-checkins]
python/dist/src/Lib/idlelib configDialog.py, 1.59, 1.60
kbk at users.sourceforge.net
kbk at users.sourceforge.net
Tue Nov 16 22:28:44 CET 2004
Update of /cvsroot/python/python/dist/src/Lib/idlelib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6890
Modified Files:
configDialog.py
Log Message:
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
Index: configDialog.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/configDialog.py,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- configDialog.py 4 Jun 2004 06:31:08 -0000 1.59
+++ configDialog.py 16 Nov 2004 21:28:36 -0000 1.60
@@ -1165,6 +1165,9 @@
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):
More information about the Python-checkins
mailing list