Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > d452cce76a211840150b563e9f20ef84 > files > 24

kdebase-3.5.7-38.4mdv2008.0.src.rpm

--- kdebase-3.5.7/kioslave/media/mediamanager/halbackend.cpp.fix_fstab_unmount	2007-09-28 15:30:18.000000000 -0300
+++ kdebase-3.5.7/kioslave/media/mediamanager/halbackend.cpp	2007-09-28 15:31:27.000000000 -0300
@@ -290,6 +290,11 @@ void HALBackend::AddDevice(const char *u
 
 void HALBackend::RemoveDevice(const char *udi)
 {
+    // if the device is being handle by fstab, we have to unmount it
+    const Medium* medium = m_mediaList.findById(udi);
+    if (medium && !isInFstab(medium).isNull())
+        unmount(udi);
+
     m_mediaList.removeMedium(udi, true);
 }