summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-01-07 22:49:22 +0100
committerTreeki <treeki@gmail.com>2012-01-07 22:49:22 +0100
commit321681e6092d87bf7e0a1430dcb1aab21c9df0be (patch)
tree836122f03fea4f002eda6cec85fd3eea5846bc17 /src
parent09c93037b1635ed8d2b4e501d992a1bf9979ceb4 (diff)
downloadkoopatlas-321681e6092d87bf7e0a1430dcb1aab21c9df0be.tar.gz
koopatlas-321681e6092d87bf7e0a1430dcb1aab21c9df0be.zip
quick fix to the layer widget
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()