Enable smartStatus for Disk Device only.

This commit is contained in:
Chantara Tith 2016-08-06 17:17:52 +07:00 committed by Andrius Štikonas
parent 20c79023c8
commit bc0cd8c411
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ Device::Device(const QString& name,
, m_TotalLogical(totalLogical)
, m_PartitionTable(nullptr)
, 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)
{
}