]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport configDialog.py rev 1.60:
authorKurt B. Kaiser <kbk@shore.net>
Wed, 19 Jan 2005 05:53:32 +0000 (05:53 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Wed, 19 Jan 2005 05:53:32 +0000 (05:53 +0000)
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

Lib/idlelib/NEWS.txt
Lib/idlelib/configDialog.py

index 5660abef962d0960a7bddafe675302a779c62924..05ea5a9447f01a1bb7d03e20ed3093a8dd2c6467 100644 (file)
@@ -3,6 +3,10 @@ What's New in IDLE 1.0.4?
 
 *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.
index 8c3eb3eb5a76b8243494dfd75a4043585ad215c5..62b2d3695f45a60213900339d7e8eb7be054c9aa 100644 (file)
@@ -1143,6 +1143,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):