1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

OP-1548 - Fix an issue with dynamic widget that causes m_currentBoardId to be left uninitialized

This commit is contained in:
a*morale 2014-10-21 00:12:50 +02:00
parent 561fb364a5
commit 44367c66a2

View File

@ -252,6 +252,9 @@ void ConfigTaskWidget::onAutopilotDisconnect()
// dynamic widgets don't recieve the connected signal. This should be called instead.
void ConfigTaskWidget::forceConnectedState()
{
if (m_objectUtilManager) {
m_currentBoardId = m_objectUtilManager->getBoardModel();
}
m_isConnected = true;
setDirty(false);
}