Skip to content

Commit 455ac6f

Browse files
committed
fixing altering dict inside loop
fixed #27
1 parent a864bfd commit 455ac6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/defconAppKit/controls/glyphView.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def _populatePlacard(self):
415415
if len(layerSet.layerOrder) > 1:
416416
items.append(NSMenuItem.separatorItem())
417417
# prep the state dictionary
418-
for layerName in self._placardLayerOptions.keys():
418+
for layerName in list(self._placardLayerOptions.keys()):
419419
if layerName not in layerSet:
420420
del self._placardLayerOptions[layerName]
421421
for layerName in layerSet.layerOrder:

0 commit comments

Comments
 (0)