1
0
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:
ephy 2010-03-19 15:19:45 +00:00 committed by ephy
parent 9da555a26a
commit c4dc8ca9c1

View File

@ -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