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:
parent
561fb364a5
commit
44367c66a2
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user