feat: remove auto map

This commit is contained in:
rankun 2020-01-31 14:46:17 +08:00
commit 71ea24c1d7
6 changed files with 12 additions and 24 deletions

View file

@ -49,6 +49,10 @@ bool DeviceManage::connectDevice(Device::DeviceParams params)
void DeviceManage::updateScript(QString script)
{
if (m_devices.isEmpty()) {
qWarning() << "no device connect!!!";
return;
}
QMapIterator<QString, QPointer<Device>> i(m_devices);
while (i.hasNext()) {
i.next();