solid: deal with TODO related to geom backend device signal

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-11-13 01:33:04 +02:00
parent 85e4668f46
commit 4aa4d623ba

View file

@ -186,8 +186,8 @@ void GeomManager::slotDeviceChanged(const DevdQt::Device &device)
const QString devtring = QString::fromLatin1(devname.constData(), devname.size());
const QString devudi = QString::fromLatin1("%1/%2").arg(GEOM_UDI_PREFIX, devtring);
if (d->isOfInterest(devudi)) {
// TODO: check if device has filesystem/content
bool hascontent = false;
const GeomDevice device(devudi);
bool hascontent = (!device.m_type.isEmpty());
emit contentChanged(devudi, hascontent);
}
}