Commits

Kurt B. Kaiser  committed 8b6548f

Backport configDialog.py rev 1.60:

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 NEWS.txt
M configDialog.py

  • Participants
  • Parent commits 70a0449
  • Branches 2.3

Comments (0)

Files changed (2)

File Lib/idlelib/NEWS.txt

 
 *Release date: XX-Jan-2005*
 
+- 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.
+
 - checking sys.platform for substring 'win' was breaking IDLE docs on Mac
   (darwin).  Also, Mac Safari browser requires full file:// URIs.  Backport of
   fix for SF 900580.

File Lib/idlelib/configDialog.py

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