disable maptool if editing stopped or dialog closed + fix deactivated map tool
fix enum in sip