From fe401d200f7ccd6e915ee496623f308d77f016f9 Mon Sep 17 00:00:00 2001 From: pixhawk Date: Sun, 6 Feb 2011 20:46:56 +0100 Subject: [PATCH] Added missing update call, renamed Waypoint List to Mission Plan --- src/ui/MainWindow.cc | 4 ++-- src/ui/WaypointView.cc | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index c94144143..1b4c64e92 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -325,10 +325,10 @@ void MainWindow::buildCommonWidgets() if (!waypointsDockWidget) { - waypointsDockWidget = new QDockWidget(tr("Waypoint List"), this); + waypointsDockWidget = new QDockWidget(tr("Mission Plan"), this); waypointsDockWidget->setWidget( new QGCWaypointListMulti(this) ); waypointsDockWidget->setObjectName("WAYPOINT_LIST_DOCKWIDGET"); - addToToolsMenu (waypointsDockWidget, tr("Waypoints List"), SLOT(showToolWidget(bool)), MENU_WAYPOINTS, Qt::BottomDockWidgetArea); + addToToolsMenu (waypointsDockWidget, tr("Mission Plan"), SLOT(showToolWidget(bool)), MENU_WAYPOINTS, Qt::BottomDockWidgetArea); } if (!infoDockWidget) diff --git a/src/ui/WaypointView.cc b/src/ui/WaypointView.cc index d30c6dd56..cfd5ff60b 100644 --- a/src/ui/WaypointView.cc +++ b/src/ui/WaypointView.cc @@ -251,6 +251,8 @@ void WaypointView::changedAction(int index) case MAV_ACTION_RELAY_OFF: // Back to global frame if (wp->getFrame() == MAV_FRAME_MISSION) changedFrame(0); + // Update view + updateActionView(actionIndex); break; case MAV_ACTION_NB: default: -- 2.22.0