mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
LP-572 Apply HomeLocation only when OK button pressed (ignored on Cancel)
This commit is contained in:
parent
f51e7d3688
commit
fd92c900a8
@ -1790,9 +1790,10 @@ void OPMapGadgetWidget::onSetHomeAct_triggered()
|
|||||||
altitude = QInputDialog::getDouble(this, tr("Set home altitude"),
|
altitude = QInputDialog::getDouble(this, tr("Set home altitude"),
|
||||||
tr("In [m], referenced to WGS84:"), altitude, -100, 100000, 2, &ok);
|
tr("In [m], referenced to WGS84:"), altitude, -100, 100000, 2, &ok);
|
||||||
|
|
||||||
setHome(m_context_menu_lat_lon, altitude);
|
if (ok) {
|
||||||
|
setHome(m_context_menu_lat_lon, altitude);
|
||||||
setHomeLocationObject(); // update the HomeLocation UAVObject
|
setHomeLocationObject(); // update the HomeLocation UAVObject
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OPMapGadgetWidget::onGoHomeAct_triggered()
|
void OPMapGadgetWidget::onGoHomeAct_triggered()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user