From: Steve Bennett Date: Sun, 12 Dec 2010 05:32:50 +0000 (+0000) Subject: Kludge up a one-line fix to another GUI updating bug: X-Git-Tag: 2.0~219 X-Git-Url: https://git.openstreetmap.org/potlatch2.git/commitdiff_plain/9113deb644446614479995d003b667fdaa4489e0 Kludge up a one-line fix to another GUI updating bug: 1) On advanced tab, change a tag like highway=road to waterway=river 2) Switch to simple tab 3) Although the new feature is recognised, the old editors are present. Also applied to repeating tags, or deleting all tags. --- diff --git a/net/systemeD/potlatch2/TagViewer.mxml b/net/systemeD/potlatch2/TagViewer.mxml index 00488669..493b3aac 100644 --- a/net/systemeD/potlatch2/TagViewer.mxml +++ b/net/systemeD/potlatch2/TagViewer.mxml @@ -604,6 +604,11 @@ } refreshFeatureIcon(); + + // Steve Bennett: I added this line 12 Dec because there was an update bug (majorly changing tags on Advanced tab doesn't update simple view) + // but I know how to use listeners. + initialiseEditors();//SB + // if the advancedTagGrid has already been set up, it needs to be refreshed. // FIXME make this better, maybe advancedTagGrid should be event listening. if(advancedContainer.initialized) { @@ -616,11 +621,13 @@ stack.removeChild(membersVBox); // remove by default, will be added if relation } + /** Open up a new browser page, showing the help page as defined in Map Features XML file .*/ public function openDescription():void { if ( feature != null && feature.hasHelpURL() ) navigateToURL(new URLRequest(feature.helpURL), "potlatch_help"); } + /** Open up a new browser page showing OSM's view of the current entity. */ public function openEntityPage():void { if (selectedEntity != null && selectedEntity.id >= 0) { // This is slightly hard-coded, but not drastically. The ../s could be changed for string manipulation of the apiBase