]> granicus.if.org Git - python/commitdiff
Saving a Keyset w/o making changes (by using the "Save as New Custom Key Set"
authorKurt B. Kaiser <kbk@shore.net>
Tue, 16 Nov 2004 21:28:36 +0000 (21:28 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Tue, 16 Nov 2004 21:28:36 +0000 (21:28 +0000)
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

Lib/idlelib/configDialog.py

index 35ef9ae7e062e5281485e9ed4a3b5dbc5fc406f4..48f22b80229e61e0b24ec1c97e3407521396c616 100644 (file)
@@ -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):