diff --git a/src/ui/uas/UASListWidget.cc b/src/ui/uas/UASListWidget.cc index d109847dc4140641f1d36b3e39e16d0f67dc4cd7..d1cdde02eb62aa7582dc7ad5b1e1c7a74f02d375 100644 --- a/src/ui/uas/UASListWidget.cc +++ b/src/ui/uas/UASListWidget.cc @@ -49,6 +49,10 @@ UASListWidget::UASListWidget(QWidget *parent) : QWidget(parent), uWidget(NULL), m_ui(new Ui::UASList) { + // Use a timer to update the link health display. + updateTimer = new QTimer(this); + connect(updateTimer,SIGNAL(timeout()),this,SLOT(updateStatus())); + m_ui->setupUi(this); m_ui->verticalLayout->setAlignment(Qt::AlignTop); @@ -72,10 +76,6 @@ UASListWidget::UASListWidget(QWidget *parent) : QWidget(parent), { addUAS(uas); } - - // Use a timer to update the link health display. - updateTimer = new QTimer(this); - connect(updateTimer,SIGNAL(timeout()),this,SLOT(updateStatus())); } UASListWidget::~UASListWidget()