From 99a8946e0f3a0a6cc1f80f79806db252149d3637 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 17 Aug 2013 23:02:04 +0200 Subject: [PATCH] Minor cleanup in PFD --- src/ui/PrimaryFlightDisplay.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ui/PrimaryFlightDisplay.cc b/src/ui/PrimaryFlightDisplay.cc index a68acdf..5c7fca0 100644 --- a/src/ui/PrimaryFlightDisplay.cc +++ b/src/ui/PrimaryFlightDisplay.cc @@ -169,18 +169,13 @@ PrimaryFlightDisplay::PrimaryFlightDisplay(int width, int height, QWidget *paren setMinimumSize(120, 80); setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + setActiveUAS(UASManager::instance()->getActiveUAS()); + // Connect with UAS signal //connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), this, SLOT(addUAS(UASInterface*))); connect(UASManager::instance(), SIGNAL(UASDeleted(UASInterface*)), this, SLOT(forgetUAS(UASInterface*))); connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(setActiveUAS(UASInterface*))); -// // Get a list of all existing UAS and - well attach to one of them. The first one. -// foreach (UASInterface* uas, UASManager::instance()->getUASList()) { -// addUAS(uas); -// } - - setActiveUAS(UASManager::instance()->getActiveUAS()); - // Refresh timer refreshTimer->setInterval(updateInterval); // connect(refreshTimer, SIGNAL(timeout()), this, SLOT(paintHUD()));