From: Richard Fairhurst Date: Fri, 28 Jan 2011 13:12:23 +0000 (+0000) Subject: ok, this should update the toolbox without incurring the tag panel time penalty X-Git-Tag: 2.0~119 X-Git-Url: https://git.openstreetmap.org/potlatch2.git/commitdiff_plain/ada8d51630a0ea20f40935be7b2b1cb3d596b9e3 ok, this should update the toolbox without incurring the tag panel time penalty --- diff --git a/net/systemeD/potlatch2/EditController.as b/net/systemeD/potlatch2/EditController.as index fd4bec0f..32cbc4c6 100644 --- a/net/systemeD/potlatch2/EditController.as +++ b/net/systemeD/potlatch2/EditController.as @@ -86,6 +86,10 @@ package net.systemeD.potlatch2 { tagViewer.setEntity(state.selection, layer); toolbox.updateSelectionUI(); } + + public function updateSelectionUIWithoutTagChange():void { + toolbox.updateSelectionUI(); + } private function keyDownHandler(event:KeyboardEvent):void { keys[event.keyCode]=true; diff --git a/net/systemeD/potlatch2/controller/DrawWay.as b/net/systemeD/potlatch2/controller/DrawWay.as index 51521611..dcf63d8b 100644 --- a/net/systemeD/potlatch2/controller/DrawWay.as +++ b/net/systemeD/potlatch2/controller/DrawWay.as @@ -48,6 +48,7 @@ package net.systemeD.potlatch2.controller { controller.map.setPurgable([node], false); resetElastic(node); lastClick=node; + controller.updateSelectionUIWithoutTagChange(); } else if ( entity is Node ) { if (entity==lastClick && (new Date().getTime()-lastClickTime.getTime())<1000) { if (Way(firstSelected).length==1 && Way(firstSelected).getNode(0).parentWays.length==1) {