DeviceManager: Use pointer directly
This commit is contained in:
parent
d8a7d427c3
commit
aa6809ad5f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user