DeviceManager: Use pointer directly

This commit is contained in:
Jonas Kvinge 2023-08-27 01:14:00 +02:00
parent d8a7d427c3
commit aa6809ad5f

View File

@ -291,7 +291,7 @@ QVariant DeviceManager::data(const QModelIndex &idx, int role) const {
if (info->size_ > 0) {
text = text + QString(" (%1)").arg(Utilities::PrettySize(info->size_));
}
if (&*info->device_) info->device_->Refresh();
if (info->device_) info->device_->Refresh();
return text;
}