summaryrefslogtreecommitdiff
path: root/src/ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.py')
-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()