diff clients/editor/plugins/LayerTool.py @ 316:6add14ebe9f5

Disabled recursing for some adaptLayout calls. This will make the editor more responsive
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 15 Aug 2009 00:42:23 +0000
parents a33576d94f32
children 62ec3b530cc6
line wrap: on
line diff
--- a/clients/editor/plugins/LayerTool.py	Fri Aug 14 22:15:47 2009 +0000
+++ b/clients/editor/plugins/LayerTool.py	Sat Aug 15 00:42:23 2009 +0000
@@ -84,7 +84,6 @@
 			return
 		self.container.setDocked(False)
 		self.container.hide()
-		self.removeAllChildren()
 		
 		events.postMapShown.disconnect(self.update)
 		
@@ -177,7 +176,7 @@
 			self.wrapper.addChild(subwrapper)
 			self.subwrappers.append(subwrapper)
 		
-		self.container.adaptLayout()		
+		self.container.adaptLayout(False)		
 			
 	def toggle_layer_visibility(self, event, widget):
 		""" Callback for ToggleButtons 
@@ -248,7 +247,7 @@
 		widget.background_color = _HIGHLIGHT_BACKGROUND_COLOR
 		widget.foreground_color = _HIGHLIGHT_BACKGROUND_COLOR
 		widget.base_color = _HIGHLIGHT_BACKGROUND_COLOR
-		self.container.adaptLayout()
+		self.container.adaptLayout(False)
 		
 		self._mapview.getController().selectLayer(layerid)