Commit 9b79fbeb authored by Don Gagne's avatar Don Gagne

parent 05452469
......@@ -195,9 +195,7 @@ void VisualMissionItem::_reallyUpdateTerrainAltitude(void)
void VisualMissionItem::_terrainDataReceived(bool success, QList<double> heights)
{
if (success) {
_terrainAltitude = heights[0];
emit terrainAltitudeChanged(_terrainAltitude);
sender()->deleteLater();
}
_terrainAltitude = success ? heights[0] : qQNaN();
emit terrainAltitudeChanged(_terrainAltitude);
sender()->deleteLater();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment