summaryrefslogtreecommitdiff
path: root/src/ui.py
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-02-17 12:20:40 -0600
committerColin Noga <Tempus@chronometry.ca>2012-02-17 12:20:40 -0600
commitd6903bed3ebf170a68be7a4891df6a2fb5f31dc7 (patch)
treeba2a5ba995484adf3d8c1d968ca6d35ce79a1a9c /src/ui.py
parent41d8073ac1b00409827968308689c6844bdf7ab8 (diff)
parent0228ba7dc04e3d4c44c9ebe31f78ab90aa11b48d (diff)
downloadkoopatlas-d6903bed3ebf170a68be7a4891df6a2fb5f31dc7.tar.gz
koopatlas-d6903bed3ebf170a68be7a4891df6a2fb5f31dc7.zip
Merge branch 'master' of ssh://treeki.rustedlogic.net:30000/Koopatlas
Diffstat (limited to '')
-rw-r--r--src/ui.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui.py b/src/ui.py
index 1a654ab..56795b6 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -328,21 +328,25 @@ class KPLayerList(QtGui.QWidget):
def moveUp(self):
index = self.selectedLayerIndex()
KP.map.moveLayer(index, index - 1)
+ self.setButtonStates()
KP.mainWindow.editor.viewport().update()
def moveDown(self):
index = self.selectedLayerIndex()
KP.map.moveLayer(index, index + 2)
+ self.setButtonStates()
KP.mainWindow.editor.viewport().update()
def moveTop(self):
index = self.selectedLayerIndex()
KP.map.moveLayer(index, 0)
+ self.setButtonStates()
KP.mainWindow.editor.viewport().update()
def moveBottom(self):
index = self.selectedLayerIndex()
KP.map.moveLayer(index, len(KP.map.layers))
+ self.setButtonStates()
KP.mainWindow.editor.viewport().update()