diff --git a/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp b/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp index fce448451..c0a1aea90 100755 --- a/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp +++ b/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp @@ -125,6 +125,11 @@ void UploaderGadgetWidget::onPhisicalHWConnect() Enables widget buttons if autopilot connected */ void UploaderGadgetWidget::onAutopilotConnect(){ + QTimer::singleShot(1000,this,SLOT(populate())); +} + +void UploaderGadgetWidget::populate() +{ m_config->haltButton->setEnabled(true); m_config->resetButton->setEnabled(true); m_config->bootButton->setEnabled(false); @@ -141,7 +146,6 @@ void UploaderGadgetWidget::onAutopilotConnect(){ runningDeviceWidget* dw = new runningDeviceWidget(this); dw->populate(); m_config->systemElements->addTab(dw, QString("Connected Device")); - } /** diff --git a/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.h b/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.h index 93ea6e14d..9b1fa1433 100755 --- a/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.h +++ b/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.h @@ -73,7 +73,7 @@ public: public slots: void onAutopilotConnect(); void onAutopilotDisconnect(); - + void populate(); private: Ui_UploaderWidget *m_config; DFUObject *dfu;