mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Fixed a crash on HEAD revision
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@324 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
0a347bf8b4
commit
7ba0b6a001
@ -87,7 +87,8 @@ UAVGadgetManagerPlaceHolder::UAVGadgetManagerPlaceHolder(Core::IMode *mode, QWid
|
||||
connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode *)),
|
||||
this, SLOT(currentModeChanged(Core::IMode *)));
|
||||
|
||||
currentModeChanged(Core::ModeManager::instance()->currentMode());
|
||||
//Julien: this line is crashing (I guess when no mode are added yet)
|
||||
//currentModeChanged(Core::ModeManager::instance()->currentMode());
|
||||
}
|
||||
|
||||
UAVGadgetManagerPlaceHolder::~UAVGadgetManagerPlaceHolder()
|
||||
@ -564,7 +565,7 @@ UAVGadgetManager::UAVGadgetFactoryList
|
||||
{
|
||||
//qDebug() << Q_FUNC_INFO;
|
||||
UAVGadgetFactoryList rc = pluginManager()->getObjects<IUAVGadgetFactory>();
|
||||
if (debugUAVGadgetManager)
|
||||
//if (debugUAVGadgetManager)
|
||||
//qDebug() << Q_FUNC_INFO << rc;
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user