mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
solid: update content signal to take into account crypto devices
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d4c3a13f3a
commit
b647b6bacd
1 changed files with 2 additions and 1 deletions
|
@ -263,7 +263,8 @@ void UDevManager::slotDeviceChanged(const UdevQt::Device &device)
|
|||
if (d->isOfInterest(udiPrefix() + device.sysfsPath(), device)) {
|
||||
if (device.subsystem() == "block") {
|
||||
const QString idfsusage = device.deviceProperty("ID_FS_USAGE");
|
||||
emit contentChanged(udiPrefix() + device.sysfsPath(), (idfsusage == "filesystem"));
|
||||
const bool hascontent = (idfsusage == "filesystem" || idfsusage == "crypto");
|
||||
emit contentChanged(udiPrefix() + device.sysfsPath(), hascontent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue