summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-08-13 21:21:37 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-08-14 14:53:20 +0900
commit0aaebc24cd00c9dd833c16dd14d1814948baac38 (patch)
tree7bbb1801f5f7f831eec2084209eb5b2792a4c034 /tdeioslave/media/mediamanager/tdehardwarebackend.cpp
parent117f9924f1cf4f000890b03b825d6dd67c89e884 (diff)
downloadtdebase-0aaebc24cd00c9dd833c16dd14d1814948baac38.tar.gz
tdebase-0aaebc24cd00c9dd833c16dd14d1814948baac38.zip
Fixed incorrect display of media device mime comment. This relates to
issue TDE/tdelibs#35. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit df19ff6b7dc7adcdb88e86d50d9d88d622a09d88)
Diffstat (limited to 'tdeioslave/media/mediamanager/tdehardwarebackend.cpp')
-rw-r--r--tdeioslave/media/mediamanager/tdehardwarebackend.cpp33
1 files changed, 17 insertions, 16 deletions
diff --git a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
index b6976b68a..8869095d1 100644
--- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
+++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
@@ -350,24 +350,25 @@ void TDEBackend::ResetProperties(TDEStorageDevice * sdevice, bool allowNotificat
// Keep these conditions in sync with ::AddDevice above, OR ELSE!!!
// BEGIN
-
- if (!(sdevice->isDiskOfType(TDEDiskDeviceType::LUKS))
- && !(sdevice->checkDiskStatus(TDEDiskDeviceStatus::ContainsFilesystem))
- && !(sdevice->isDiskOfType(TDEDiskDeviceType::CDAudio))
- && !(sdevice->checkDiskStatus(TDEDiskDeviceStatus::Blank))
- ) {
- }
- else {
- // Do not list the LUKS backend device if it has been unlocked elsewhere
- if (sdevice->isDiskOfType(TDEDiskDeviceType::LUKS)) {
- if (sdevice->holdingDevices().count() > 0) {
- m->setHidden(true);
- }
- else {
- m->setHidden(false);
+ if (sdevice->isDiskOfType(TDEDiskDeviceType::HDD)) {
+ if (!(sdevice->isDiskOfType(TDEDiskDeviceType::LUKS))
+ && !(sdevice->checkDiskStatus(TDEDiskDeviceStatus::ContainsFilesystem))
+ && !(sdevice->isDiskOfType(TDEDiskDeviceType::CDAudio))
+ && !(sdevice->checkDiskStatus(TDEDiskDeviceStatus::Blank))
+ ) {
+ }
+ else {
+ // Do not list the LUKS backend device if it has been unlocked elsewhere
+ if (sdevice->isDiskOfType(TDEDiskDeviceType::LUKS)) {
+ if (sdevice->holdingDevices().count() > 0) {
+ m->setHidden(true);
+ }
+ else {
+ m->setHidden(false);
+ }
}
+ setVolumeProperties(m);
}
- setVolumeProperties(m);
}
if ((sdevice->isDiskOfType(TDEDiskDeviceType::CDROM))