1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

OP-1191 Added message box stating that board reboot is needed after bind/unbind

This commit is contained in:
m_thread 2014-02-06 17:51:13 +01:00
parent cebe236c44
commit 6bfbe88813
2 changed files with 4 additions and 2 deletions

View File

@ -30,6 +30,7 @@
#include <coreplugin/generalsettings.h> #include <coreplugin/generalsettings.h>
#include <oplinksettings.h> #include <oplinksettings.h>
#include <oplinkstatus.h> #include <oplinkstatus.h>
#include <QMessageBox>
ConfigPipXtremeWidget::ConfigPipXtremeWidget(QWidget *parent) : ConfigTaskWidget(parent) ConfigPipXtremeWidget::ConfigPipXtremeWidget(QWidget *parent) : ConfigTaskWidget(parent)
{ {
@ -304,6 +305,7 @@ void ConfigPipXtremeWidget::bind()
quint32 boundPairId = m_oplink->CoordID->text().toUInt(&ok, 16); quint32 boundPairId = m_oplink->CoordID->text().toUInt(&ok, 16);
(pairid != boundPairId) ? m_oplink->CoordID->setText(QString::number(pairid, 16).toUpper()) : m_oplink->CoordID->setText("0"); (pairid != boundPairId) ? m_oplink->CoordID->setText(QString::number(pairid, 16).toUpper()) : m_oplink->CoordID->setText("0");
} }
QMessageBox::information(this, tr("Information", "To apply the changes when binding/unbinding the board must be rebooted or power cycled."), QMessageBox::Ok);
} }
} }

View File

@ -16,7 +16,7 @@
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<widget class="QTabWidget" name="tabWidget_3"> <widget class="QTabWidget" name="tabWidget_3">
<widget class="QWidget" name="tabWidget_3Page1" native="true"> <widget class="QWidget" name="tabWidget_3Page1">
<attribute name="title"> <attribute name="title">
<string>OPLink configuration</string> <string>OPLink configuration</string>
</attribute> </attribute>
@ -686,7 +686,7 @@
</font> </font>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>This is the coordinator id currently bound to.</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is the coordinator id we currently are bound to.&lt;/p&gt;&lt;p&gt;To manually bind to a specific coordinator, just type&lt;/p&gt;&lt;p&gt;or paste its device id in this box and save.&lt;/p&gt;&lt;p&gt;The device must be rebooted for the binding to take place.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="maxLength"> <property name="maxLength">
<number>8</number> <number>8</number>