stop scanning only if kml buttons pushed

Previously it stopped scanning if the developer dialog was shown.