summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media/mediamanager/removablebackend.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2019-08-24 18:25:55 +0900
committerMichele Calgaro <[email protected]>2020-10-17 10:48:28 +0800
commitd34f23f403e82f352e4c5d4e20966bcba2bec8c6 (patch)
treea1c02a3f85d2cf018f279bca095d5012702701e5 /tdeioslave/media/mediamanager/removablebackend.cpp
parentebc4784c4fddeb307f4bc2ab83b4189312f24f3b (diff)
downloadtdebase-d34f23f403e82f352e4c5d4e20966bcba2bec8c6.tar.gz
tdebase-d34f23f403e82f352e4c5d4e20966bcba2bec8c6.zip
tdeioslave media: clean up code related to medium mountable state in preparation for further work.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeioslave/media/mediamanager/removablebackend.cpp')
-rw-r--r--tdeioslave/media/mediamanager/removablebackend.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tdeioslave/media/mediamanager/removablebackend.cpp b/tdeioslave/media/mediamanager/removablebackend.cpp
index 54df3d6f1..dacb9b704 100644
--- a/tdeioslave/media/mediamanager/removablebackend.cpp
+++ b/tdeioslave/media/mediamanager/removablebackend.cpp
@@ -63,8 +63,11 @@ bool RemovableBackend::plug(const TQString &devNode, const TQString &label)
if (!m_removableIds.contains(id))
{
Medium *medium = new Medium(id, id, name);
- medium->mountableState(devNode, TQString::null,
- TQString::null, false);
+ medium->setMountable(true);
+ medium->setDeviceNode(devNode);
+ medium->setMountPoint(TQString::null);
+ medium->setFsType(TQString::null);
+ medium->setMounted(false);
TQStringList words = TQStringList::split(" ", label);