Commit b608b7dd authored by Don Gagne's avatar Don Gagne

Fix dirty handling

parent 5ce2162f
...@@ -878,10 +878,14 @@ bool MissionItem::canEdit(void) ...@@ -878,10 +878,14 @@ bool MissionItem::canEdit(void)
void MissionItem::setDirty(bool dirty) void MissionItem::setDirty(bool dirty)
{ {
_dirty = dirty; if (!_homePositionSpecialCase || !dirty) {
// We want to emit dirtyChanged even if _dirty didn't change. This can be handy signal for // Home position never affects dirty bit
// any value within the item changing.
emit dirtyChanged(_dirty); _dirty = dirty;
// We want to emit dirtyChanged even if _dirty didn't change. This can be handy signal for
// any value within the item changing.
emit dirtyChanged(_dirty);
}
} }
void MissionItem::_factValueChanged(QVariant value) void MissionItem::_factValueChanged(QVariant value)
......
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