Skip to content

Commit

Permalink
fixing altering dict inside loop
Browse files Browse the repository at this point in the history
fixed #27
  • Loading branch information
typemytype committed Feb 8, 2019
1 parent a864bfd commit 455ac6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/defconAppKit/controls/glyphView.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def _populatePlacard(self):
if len(layerSet.layerOrder) > 1:
items.append(NSMenuItem.separatorItem())
# prep the state dictionary
for layerName in self._placardLayerOptions.keys():
for layerName in list(self._placardLayerOptions.keys()):
if layerName not in layerSet:
del self._placardLayerOptions[layerName]
for layerName in layerSet.layerOrder:
Expand Down

0 comments on commit 455ac6f

Please sign in to comment.