diff options
Diffstat (limited to '')
-rw-r--r-- | src/ui.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -107,6 +107,13 @@ class KPPathNodeList(QtGui.QWidget): self.setupToolbar(self.toolbar) self.setLayout(self.layout) + + + def reset(self): + self.tree.clear() + + for layer in KP.map.associateLayers: + self.loadLayer(layer) def setupToolbar(self, tb): @@ -751,6 +758,7 @@ class KPMainWindow(QtGui.QMainWindow): def refreshMapState(self): self.layerList.updateModel() self.doodadSelector.updateModel() + self.pathNodeList.reset() self.scene = KPMapScene() self.editor.assignNewScene(self.scene) |