From aa6809ad5fe99a7fb9b1fa6fca1903af921de5f7 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 27 Aug 2023 01:14:00 +0200 Subject: [PATCH] DeviceManager: Use pointer directly --- src/device/devicemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/devicemanager.cpp b/src/device/devicemanager.cpp index ff8a0d9f7..0a0535185 100644 --- a/src/device/devicemanager.cpp +++ b/src/device/devicemanager.cpp @@ -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; }