Fixed indexing dictionary keys

This commit is contained in:
Markus Lampert
2019-01-03 10:45:36 -08:00
committed by wmayer
parent d33098860d
commit cd1ebb1732

View File

@@ -328,7 +328,7 @@ class ToolLibraryManager():
tt = Path.Tooltable()
if position is None:
tt.addTools(tool)
newID = tt.Tools.keys()[-1]
newID = list(tt.Tools)[-1]
else:
tt.setTool(position, tool)
newID = position