DeviceManager: Add nullptr check for connected device
Possible fix for #1313
This commit is contained in:
parent
8d1a0071b6
commit
a4b7766947
|
@ -830,7 +830,7 @@ void DeviceManager::DeviceTaskStarted(const int id) {
|
||||||
|
|
||||||
for (int i = 0; i < devices_.count(); ++i) {
|
for (int i = 0; i < devices_.count(); ++i) {
|
||||||
DeviceInfo *info = devices_[i];
|
DeviceInfo *info = devices_[i];
|
||||||
if (&*info->device_ == device) {
|
if (info->device_ && &*info->device_ == device) {
|
||||||
QModelIndex index = ItemToIndex(info);
|
QModelIndex index = ItemToIndex(info);
|
||||||
if (!index.isValid()) continue;
|
if (!index.isValid()) continue;
|
||||||
active_tasks_[id] = index;
|
active_tasks_[id] = index;
|
||||||
|
|
Loading…
Reference in New Issue