Index: modules/openlayers_behaviors/js/openlayers_behaviors.behaviors.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/modules/openlayers_behaviors/js/openlayers_behaviors.behaviors.js,v
retrieving revision 1.15.2.4
diff -u -p -w -r1.15.2.4 openlayers_behaviors.behaviors.js
--- modules/openlayers_behaviors/js/openlayers_behaviors.behaviors.js	21 Jul 2009 20:46:38 -0000	1.15.2.4
+++ modules/openlayers_behaviors/js/openlayers_behaviors.behaviors.js	27 Jul 2009 18:13:10 -0000
@@ -50,7 +50,13 @@ OL.Behaviors.popupFeatureSelected = func
     feature.geometry.getBounds().getCenterLonLat(),
     null,
     "<div class='openlayers-popup'>"+ feature.attributes[feature.layer.drupalData.popupAttribute] +"</div>",
-    null, true);
+    null, true,
+	function () {
+		for(f in feature.layer.map.controls) {
+			if(feature.layer.map.controls[f] instanceof OpenLayers.Control.SelectFeature)
+				feature.layer.map.controls[f].unselect(feature);
+		}
+	});
   feature.popup = popup;
   feature.layer.map.addPopup(popup);
 }
