diff --git a/ground/openpilotgcs/src/plugins/coreplugin/uavgadgetdecorator.cpp b/ground/openpilotgcs/src/plugins/coreplugin/uavgadgetdecorator.cpp index bca700785..816dc41c3 100644 --- a/ground/openpilotgcs/src/plugins/coreplugin/uavgadgetdecorator.cpp +++ b/ground/openpilotgcs/src/plugins/coreplugin/uavgadgetdecorator.cpp @@ -44,7 +44,7 @@ UAVGadgetDecorator::UAVGadgetDecorator(IUAVGadget *gadget, QListsetMinimumContentsLength(15); foreach(IUAVGadgetConfiguration * config, *m_configurations) m_toolbar->addItem(config->name()); - connect(m_toolbar, SIGNAL(currentIndexChanged(int)), this, SLOT(loadConfiguration(int))); + connect(m_toolbar, SIGNAL(activated(int)), this, SLOT(loadConfiguration(int))); updateToolbar(); }