From c4dc8ca9c1e57cadcd843adbb5a7a4388e344327 Mon Sep 17 00:00:00 2001 From: ephy Date: Fri, 19 Mar 2010 15:19:45 +0000 Subject: [PATCH] GCS/coreplugin: Remove unnecessary restriction on priority git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@335 ebee16cc-31ac-478f-84a7-5cbb03baadba --- ground/src/plugins/coreplugin/uavgadgetmode.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ground/src/plugins/coreplugin/uavgadgetmode.cpp b/ground/src/plugins/coreplugin/uavgadgetmode.cpp index 185798875..6737ec8d1 100644 --- a/ground/src/plugins/coreplugin/uavgadgetmode.cpp +++ b/ground/src/plugins/coreplugin/uavgadgetmode.cpp @@ -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