From dd75a986e60e612581ffeb5f46f1da2e505c32e4 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 13 Jun 2014 09:09:43 +0200 Subject: [PATCH] MainWindow: handle maptool widget destroy event Signed-off-by: Koen Kooi --- src/ui/MainWindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index 558feedaa..ab2d78695 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -658,7 +658,7 @@ void MainWindow::buildCommonWidgets() createDockWidget(engineeringView,new ParameterInterface(this),tr("Onboard Parameters"),"PARAMETER_INTERFACE_DOCKWIDGET",VIEW_ENGINEER,Qt::RightDockWidgetArea); createDockWidget(simView,new ParameterInterface(this),tr("Onboard Parameters"),"PARAMETER_INTERFACE_DOCKWIDGET",VIEW_SIMULATION,Qt::RightDockWidgetArea); - createDockWidget(pilotView,new QGCMapTool(this),tr("Map view"),"MAP_VIEW_DOCKWIDGET",VIEW_MISSION,Qt::RightDockWidgetArea); + menuActionHelper->createToolAction(tr("Map View"), "MAP_VIEW_DOCKWIDGET"); menuActionHelper->createToolAction(tr("Status Details"), "UAS_STATUS_DETAILS_DOCKWIDGET"); -- 2.22.0