diff options
author | Michele Calgaro <[email protected]> | 2022-03-26 23:54:14 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-03-26 23:54:14 +0900 |
commit | 88d92af3c14c0b0b9149440c1b5d38e8fb7cbd79 (patch) | |
tree | 5b660ea97d403e65a7d48cd607a4b42894f52b11 /tdeioslave/media/mediamanager/tdehardwarebackend.cpp | |
parent | 40ef766f02ea0e099a3fad77ed7eec519e2d5ec8 (diff) | |
download | tdebase-88d92af3c14c0b0b9149440c1b5d38e8fb7cbd79.tar.gz tdebase-88d92af3c14c0b0b9149440c1b5d38e8fb7cbd79.zip |
hwmanager: use tdeio_media_mounthelper process to
mount/unmout/lock/unlock/ejct media devices.
This ensures a consistent media device status also with complex
partition structures and LUKS encryption.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeioslave/media/mediamanager/tdehardwarebackend.cpp')
-rw-r--r-- | tdeioslave/media/mediamanager/tdehardwarebackend.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp index 2a54f6b6b..bb5849149 100644 --- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp +++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp @@ -1427,6 +1427,7 @@ TQStringVariantMap TDEBackend::unmount(const TQString &id) m_mediaList.removeMedium(uid, true); } + ResetProperties(sdevice, false, true); result["result"] = true; return result; } @@ -1528,6 +1529,7 @@ TQStringVariantMap TDEBackend::lock(const TQString &id, bool releaseHolders) } } + ResetProperties(sdevice, false, true); result["result"] = true; return result; } |