Skip to content

Commit 9151a1a

Browse files
committed
Fix how signals are disconnected in LedDeviceManager (#331)
This was introduced in b464611. Instead of disconnecting this=>m_ledDevice, it disconnects this=>*, breaking recovery logic
1 parent c66f962 commit 9151a1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Software/src/LedDeviceManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ void LedDeviceManager::disconnectSignalSlotsLedDevice()
575575
qWarning() << Q_FUNC_INFO << "m_ledDevice == NULL";
576576
return;
577577
}
578-
m_ledDevice->disconnect(this, nullptr, nullptr, nullptr);
579-
disconnect(m_ledDevice, nullptr, nullptr, nullptr);
578+
disconnect(m_ledDevice, nullptr, this, nullptr);
579+
disconnect(this, nullptr, m_ledDevice, nullptr);
580580
}
581581

582582
void LedDeviceManager::cmdQueueAppend(LedDeviceCommands::Cmd cmd)

0 commit comments

Comments
 (0)