mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
OP-112 OP-1120 bring waypoint editor to the front it case it was open and hidden away
This commit is contained in:
parent
5f88078256
commit
c3506d07ad
@ -502,7 +502,8 @@ void OPMapGadgetWidget::contextMenuEvent(QContextMenuEvent *event)
|
||||
contextMenu.addAction(wayPointEditorAct);
|
||||
contextMenu.addAction(addWayPointActFromContextMenu);
|
||||
|
||||
if (m_mouse_waypoint) { // we have a waypoint under the mouse
|
||||
if (m_mouse_waypoint) {
|
||||
// we have a waypoint under the mouse
|
||||
contextMenu.addAction(editWayPointAct);
|
||||
|
||||
lockWayPointAct->setChecked(waypoint_locked);
|
||||
@ -1870,8 +1871,12 @@ void OPMapGadgetWidget::onUAVTrailDistanceActGroup_triggered(QAction *action)
|
||||
|
||||
void OPMapGadgetWidget::onOpenWayPointEditorAct_triggered()
|
||||
{
|
||||
// open dialog
|
||||
table->show();
|
||||
// bring dialog to the front in case it was already open and hidden away
|
||||
table->raise();
|
||||
}
|
||||
|
||||
void OPMapGadgetWidget::onAddWayPointAct_triggeredFromContextMenu()
|
||||
{
|
||||
onAddWayPointAct_triggered(m_context_menu_lat_lon);
|
||||
|
Loading…
x
Reference in New Issue
Block a user