From 321681e6092d87bf7e0a1430dcb1aab21c9df0be Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 7 Jan 2012 22:49:22 +0100 Subject: quick fix to the layer widget --- src/ui.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui.py') 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() -- cgit v1.2.3