Commit 89ef6022 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #5659 from DonLakeFlyer/HomeDirty

Plan: If vehicle updates home position don't mark plan dirty
parents 2f6e34b4 42c65be7
...@@ -1499,11 +1499,10 @@ void MissionController::_managerVehicleHomePositionChanged(const QGeoCoordinate& ...@@ -1499,11 +1499,10 @@ void MissionController::_managerVehicleHomePositionChanged(const QGeoCoordinate&
} else { } else {
qWarning() << "First item is not MissionSettingsItem"; qWarning() << "First item is not MissionSettingsItem";
} }
if (_visualItems->count() == 1) { // Don't let this trip the dirty bit. Otherwise plan will keep getting marked dirty if vehicle home
// Don't let this trip the dirty bit // changes.
_visualItems->setDirty(false); _visualItems->setDirty(false);
} }
}
} }
void MissionController::_inProgressChanged(bool inProgress) void MissionController::_inProgressChanged(bool inProgress)
......
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