mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
GCS/coreplugin: Remove unnecessary restriction on priority
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@335 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
9da555a26a
commit
c4dc8ca9c1
@ -49,15 +49,13 @@ UAVGadgetMode::UAVGadgetMode(UAVGadgetManager *uavGadgetManager, QString name, Q
|
||||
m_name(name),
|
||||
m_icon(icon),
|
||||
m_widget(new QWidget),
|
||||
m_priority(0),
|
||||
m_priority(priority),
|
||||
m_layout(new QVBoxLayout)
|
||||
{
|
||||
m_layout->setSpacing(0);
|
||||
m_layout->setMargin(0);
|
||||
m_widget->setLayout(m_layout);
|
||||
m_layout->insertWidget(0, new Core::UAVGadgetManagerPlaceHolder(this));
|
||||
if (0 <= priority && priority <= 100)
|
||||
m_priority = priority;
|
||||
|
||||
ModeManager *modeManager = ModeManager::instance();
|
||||
// checking that the mode name is unique gives harmless
|
||||
|
Loading…
Reference in New Issue
Block a user