Enable smartStatus for Disk Device only.
This commit is contained in:
parent
20c79023c8
commit
bc0cd8c411
|
@ -41,7 +41,7 @@ Device::Device(const QString& name,
|
||||||
, m_TotalLogical(totalLogical)
|
, m_TotalLogical(totalLogical)
|
||||||
, m_PartitionTable(nullptr)
|
, m_PartitionTable(nullptr)
|
||||||
, m_IconName(iconname.isEmpty() ? QStringLiteral("drive-harddisk") : iconname)
|
, m_IconName(iconname.isEmpty() ? QStringLiteral("drive-harddisk") : iconname)
|
||||||
, m_SmartStatus(new SmartStatus(devicenode))
|
, m_SmartStatus(type == Device::Disk_Device ? new SmartStatus(devicenode) : nullptr)
|
||||||
, m_Type(type)
|
, m_Type(type)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue