diff options
author | Timothy Pearson <[email protected]> | 2012-09-02 02:41:08 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-09-02 02:41:08 -0500 |
commit | d36f60966edf14f1420b8226951f6f26cd48c731 (patch) | |
tree | 3d88b60e0a0c0a011234a321253bb90fc3c47111 /kioslave/media/mediamanager/halbackend.cpp | |
parent | 96bfcec9d751b7255163e548b0bbb91b7c7b3332 (diff) | |
download | tdebase-d36f60966edf14f1420b8226951f6f26cd48c731.tar.gz tdebase-d36f60966edf14f1420b8226951f6f26cd48c731.zip |
Fix TDEHWLib media backend user device labels
Diffstat (limited to 'kioslave/media/mediamanager/halbackend.cpp')
-rw-r--r-- | kioslave/media/mediamanager/halbackend.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kioslave/media/mediamanager/halbackend.cpp b/kioslave/media/mediamanager/halbackend.cpp index 575d7f729..ca0c4e26c 100644 --- a/kioslave/media/mediamanager/halbackend.cpp +++ b/kioslave/media/mediamanager/halbackend.cpp @@ -265,7 +265,7 @@ void HALBackend::AddDevice(const char *udi, bool allowNotification) libhal_volume_free(halVolume); /* Create medium */ - Medium* medium = new Medium(udi, ""); + Medium* medium = new Medium(udi, udi, ""); setVolumeProperties(medium); if ( isInFstab( medium ).isNull() ) @@ -304,7 +304,7 @@ void HALBackend::AddDevice(const char *udi, bool allowNotification) if (! libhal_device_get_property_bool(m_halContext, udi, "storage.removable.media_available", NULL) ) allowNotification = false; /* Create medium */ - Medium* medium = new Medium(udi, ""); + Medium* medium = new Medium(udi, udi, ""); // if the storage has a volume, we ignore it if ( setFloppyProperties(medium) ) m_mediaList.addMedium(medium, allowNotification); @@ -322,7 +322,7 @@ void HALBackend::AddDevice(const char *udi, bool allowNotification) ) { /* Create medium */ - Medium* medium = new Medium(udi, ""); + Medium* medium = new Medium(udi, udi, ""); setCameraProperties(medium); m_mediaList.addMedium(medium, allowNotification); return; @@ -460,7 +460,7 @@ void HALBackend::ResetProperties(const char* mediumUdi, bool allowNotification) } } - Medium* m = new Medium(mediumUdi, ""); + Medium* m = new Medium(mediumUdi, mediumUdi, ""); if (libhal_device_query_capability(m_halContext, mediumUdi, "volume", NULL)) setVolumeProperties(m); |