diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-08-25 14:34:16 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-10-17 10:48:29 +0800 |
commit | 7c6e00a43ce3626e0450954ab1234c78048fcb58 (patch) | |
tree | b732915f07a411b97c02734de6be5f68827e7198 /tdeioslave/media/mediamanager/tdehardwarebackend.cpp | |
parent | b54fcda719b94c629c11e9b3462f2c9a2c5a9666 (diff) | |
download | tdebase-7c6e00a43ce3626e0450954ab1234c78048fcb58.tar.gz tdebase-7c6e00a43ce3626e0450954ab1234c78048fcb58.zip |
tdeioslave media: added LOCKED property to Medium class.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeioslave/media/mediamanager/tdehardwarebackend.cpp')
-rw-r--r-- | tdeioslave/media/mediamanager/tdehardwarebackend.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp index 74180ca9a..bcd610ef4 100644 --- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp +++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp @@ -460,6 +460,7 @@ void TDEBackend::setVolumeProperties(Medium* medium) medium->setName(generateName(sdevice->deviceNode())); if (sdevice->isDiskOfType(TDEDiskDeviceType::LUKS) || sdevice->isDiskOfType(TDEDiskDeviceType::OtherCrypted)) { medium->setEncrypted(true); + medium->setLocked(!sdevice->isDiskOfType(TDEDiskDeviceType::UnlockedCrypt)); } else { medium->setEncrypted(false); @@ -831,6 +832,7 @@ bool TDEBackend::setFloppyProperties(Medium* medium) medium->setName(generateName(sdevice->deviceNode())); if (sdevice->isDiskOfType(TDEDiskDeviceType::LUKS) || sdevice->isDiskOfType(TDEDiskDeviceType::OtherCrypted)) { medium->setEncrypted(true); + medium->setLocked(!sdevice->isDiskOfType(TDEDiskDeviceType::UnlockedCrypt)); } else { medium->setEncrypted(false); |