diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-03-12 19:51:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-03-12 19:51:12 +0900 |
commit | e35bb1ed562f54bd6108a6f8e429ef5b9d695310 (patch) | |
tree | 3e8ada4d622047537f98df6c74181ffb075ce905 | |
parent | 9d96714f59cd9143180e7b7c29d90a4e3a0838d6 (diff) | |
download | tdebase-e35bb1ed562f54bd6108a6f8e429ef5b9d695310.tar.gz tdebase-e35bb1ed562f54bd6108a6f8e429ef5b9d695310.zip |
tdeioslave mediamanager: show the device node in the label also for removable drives and CD/DVD disks.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | tdeioslave/media/mediamanager/tdehardwarebackend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp index 0e6eb4ad8..d99105464 100644 --- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp +++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp @@ -519,7 +519,7 @@ void TDEBackend::setVolumeProperties(Medium* medium) // Default mimeType = "media/cdrom" + MOUNT_MEDIA_SUFFIX; if (useDefaultLabel) { - diskLabel = i18n("%1 Removable Device").arg(sdevice->deviceFriendlySize()); + diskLabel = i18n("%1 Removable Disk (%2)").arg(sdevice->deviceFriendlySize(), sdevice->deviceNode()); } if (sdevice->isDiskOfType(TDEDiskDeviceType::CDROM)) { @@ -775,7 +775,7 @@ void TDEBackend::setVolumeProperties(Medium* medium) || sdevice->checkDiskStatus(TDEDiskDeviceStatus::Hotpluggable)) { mimeType = "media/removable" + MOUNT_MEDIA_SUFFIX; if (useDefaultLabel) { - diskLabel = i18n("%1 Removable Device").arg(sdevice->deviceFriendlySize()); + diskLabel = i18n("%1 Removable Disk (%2)").arg(sdevice->deviceFriendlySize(), sdevice->deviceNode()); } } @@ -882,7 +882,7 @@ bool TDEBackend::setFloppyProperties(Medium* medium) // Set label TQString diskLabel = sdevice->diskLabel(); if (diskLabel.isNull()) { - diskLabel = i18n("%1 Zip Disk").arg(sdevice->deviceFriendlySize()); + diskLabel = i18n("%1 Zip Disk (%2)").arg(sdevice->deviceFriendlySize(), sdevice->deviceNode()); } medium->setLabel(diskLabel); } |