summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-01-29 02:10:21 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-01-29 02:10:21 +0100
commitce73b505b2fb7ca3877cebdcd4785ac9ecbf0148 (patch)
tree96cd1453f5d1813476be29fb72d0314ee7a84b29 /tdeioslave/media
parent66e8d0eddd3b1e3ac3202a45323fa269ab003970 (diff)
downloadtdebase-ce73b505b2fb7ca3877cebdcd4785ac9ecbf0148.tar.gz
tdebase-ce73b505b2fb7ca3877cebdcd4785ac9ecbf0148.zip
Fix removable hard disks mimetype in tdehw storage backend
This relates to Bug 2473 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdeioslave/media')
-rw-r--r--tdeioslave/media/mediamanager/tdehardwarebackend.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
index edfa9fec3..8329c6e3f 100644
--- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
+++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
@@ -737,14 +737,14 @@ void TDEBackend::setVolumeProperties(Medium* medium)
diskLabel = i18n("%1 Fixed Disk (%2)").arg(sdevice->deviceFriendlySize(), sdevice->deviceNode());
}
- if (sdevice->isDiskOfType(TDEDiskDeviceType::USB)) {
+ if (sdevice->isDiskOfType(TDEDiskDeviceType::USB)
+ || sdevice->checkDiskStatus(TDEDiskDeviceStatus::Removable)
+ || sdevice->checkDiskStatus(TDEDiskDeviceStatus::Hotpluggable)) {
mimeType = "media/removable" + MOUNT_SUFFIX;
if (useDefaultLabel) {
diskLabel = i18n("%1 Removable Device").arg(sdevice->deviceFriendlySize());
}
- medium->needMounting();
-
if (sdevice->isDiskOfType(TDEDiskDeviceType::CompactFlash)) {
medium->setIconName("compact_flash" + MOUNT_ICON_SUFFIX);
}