mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
solid: deal with TODO related to geom backend device signal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
85e4668f46
commit
4aa4d623ba
1 changed files with 2 additions and 2 deletions
|
@ -186,8 +186,8 @@ void GeomManager::slotDeviceChanged(const DevdQt::Device &device)
|
||||||
const QString devtring = QString::fromLatin1(devname.constData(), devname.size());
|
const QString devtring = QString::fromLatin1(devname.constData(), devname.size());
|
||||||
const QString devudi = QString::fromLatin1("%1/%2").arg(GEOM_UDI_PREFIX, devtring);
|
const QString devudi = QString::fromLatin1("%1/%2").arg(GEOM_UDI_PREFIX, devtring);
|
||||||
if (d->isOfInterest(devudi)) {
|
if (d->isOfInterest(devudi)) {
|
||||||
// TODO: check if device has filesystem/content
|
const GeomDevice device(devudi);
|
||||||
bool hascontent = false;
|
bool hascontent = (!device.m_type.isEmpty());
|
||||||
emit contentChanged(devudi, hascontent);
|
emit contentChanged(devudi, hascontent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue