so painful
[potlatch2.git] / net / systemeD / potlatch2 / TagViewer.mxml
index 3aa840ae4b384d151c3bbbabbcb351ed5b08598c..f4b0f408678bcdd08f608b7b4e9ffc16858e7529 100644 (file)
 
       private function blankFeatureIcon(entity:Entity):void {
           iconImage.source = null;
+          popupChange.label = "unknown";
+          setLimitTypes(entity);
                  if (entity == null) { 
                        iconText.htmlText = "<i>Nothing selected</i>";
+            tw.setNoSelectedFeature();
                  } else if (entity.hasTags()) {
                        iconText.htmlText = "<b>Not recognised</b><br/>Try looking at the tags under the advanced properties";
+            tw.setSelectedFeature(null);
                  } else {
                        iconText.htmlText = "<b>No tags set</b><br/>Use the menu above to say what this "+entity.getType()+" is";
+            tw.setSelectedFeature(null);
           }
-          popupChange.label = "unknown";
-          setLimitTypes(entity);
-          tw.setSelectedFeature(null);
           helpLabel.visible = false;
       }