summaryrefslogtreecommitdiff
path: root/src/ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.py')
-rw-r--r--src/ui.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui.py b/src/ui.py
index 9a0744c..0936957 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -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)