diff options
Diffstat (limited to 'kioslave/media/mediamanager')
-rw-r--r-- | kioslave/media/mediamanager/tdehardwarebackend.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kioslave/media/mediamanager/tdehardwarebackend.cpp b/kioslave/media/mediamanager/tdehardwarebackend.cpp index bb12e09ab..892ac44d0 100644 --- a/kioslave/media/mediamanager/tdehardwarebackend.cpp +++ b/kioslave/media/mediamanager/tdehardwarebackend.cpp @@ -991,6 +991,14 @@ TQString TDEBackend::mount(const Medium *medium) if (valids.contains("locale")) { optionString.append(TQString(" -c %1").arg(valids["locale"])); } + + if (diskLabel == "") { + // Try to use a pretty mount point if possible + TQStringList pieces = TQStringList::split("/", sdevice->deviceNode(), FALSE); + TQString node = pieces[pieces.count()-1]; + diskLabel = medium->label() + " (" + node + ")"; + diskLabel.replace("/", "_"); + } TQString qerror = i18n("Cannot mount encrypted drives!"); |