DeviceManager: Use pointer directly
This commit is contained in:
@@ -291,7 +291,7 @@ QVariant DeviceManager::data(const QModelIndex &idx, int role) const {
|
|||||||
if (info->size_ > 0) {
|
if (info->size_ > 0) {
|
||||||
text = text + QString(" (%1)").arg(Utilities::PrettySize(info->size_));
|
text = text + QString(" (%1)").arg(Utilities::PrettySize(info->size_));
|
||||||
}
|
}
|
||||||
if (&*info->device_) info->device_->Refresh();
|
if (info->device_) info->device_->Refresh();
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user