diff options
author | Michele Calgaro <[email protected]> | 2019-08-25 11:21:21 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-10-17 10:48:29 +0800 |
commit | b54fcda719b94c629c11e9b3462f2c9a2c5a9666 (patch) | |
tree | b3541609fd0e5aca04427b1c4ff759a9390c77b9 /tdeioslave/media/libmediacommon | |
parent | d34f23f403e82f352e4c5d4e20966bcba2bec8c6 (diff) | |
download | tdebase-b54fcda719b94c629c11e9b3462f2c9a2c5a9666.tar.gz tdebase-b54fcda719b94c629c11e9b3462f2c9a2c5a9666.zip |
tdeioslave media: fixed handling of mountable state for encrypted devices.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeioslave/media/libmediacommon')
-rw-r--r-- | tdeioslave/media/libmediacommon/medium.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/tdeioslave/media/libmediacommon/medium.cpp b/tdeioslave/media/libmediacommon/medium.cpp index 7ded6f0f1..c185a8c9f 100644 --- a/tdeioslave/media/libmediacommon/medium.cpp +++ b/tdeioslave/media/libmediacommon/medium.cpp @@ -179,7 +179,14 @@ void Medium::setDeviceNode(const TQString &deviceNode) void Medium::setMountPoint(const TQString &mountPoint) { - m_properties[MOUNT_POINT] = mountPoint; + if (isMountable()) + { + m_properties[MOUNT_POINT] = mountPoint; + } + else + { + m_properties[MOUNT_POINT] = TQString::null; + } } void Medium::setFsType(const TQString &fsType) @@ -189,7 +196,14 @@ void Medium::setFsType(const TQString &fsType) void Medium::setMounted(bool mounted) { - m_properties[MOUNTED] = mounted ? "true" : "false"; + if (isMountable()) + { + m_properties[MOUNTED] = mounted ? "true" : "false"; + } + else + { + m_properties[MOUNTED] = "false"; + } } void Medium::setBaseURL(const TQString &baseURL) |