summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media/mediaimpl.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-11-28 13:17:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-11-28 13:17:42 -0600
commit2c1d4ad359e90360708cffe70c298b264b302e49 (patch)
tree02f179c7d5f201f39c3036190142fa95c2288641 /tdeioslave/media/mediaimpl.cpp
parenta7c3b934973a9435120596a6a577ab62e6fee348 (diff)
downloadtdebase-2c1d4ad359e90360708cffe70c298b264b302e49.tar.gz
tdebase-2c1d4ad359e90360708cffe70c298b264b302e49.zip
Hide udev hidden devices via the hidden file mechanism
This resolves Bug 2211
Diffstat (limited to 'tdeioslave/media/mediaimpl.cpp')
-rw-r--r--tdeioslave/media/mediaimpl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdeioslave/media/mediaimpl.cpp b/tdeioslave/media/mediaimpl.cpp
index e00cedccd..7b22a5d22 100644
--- a/tdeioslave/media/mediaimpl.cpp
+++ b/tdeioslave/media/mediaimpl.cpp
@@ -424,6 +424,10 @@ void MediaImpl::createMediumEntry(TDEIO::UDSEntry& entry,
addAtom(entry, TDEIO::UDS_MIME_TYPE, 0, medium.mimeType());
addAtom(entry, TDEIO::UDS_GUESSED_MIME_TYPE, 0, "inode/directory");
+ if (medium.softHidden()) {
+ addAtom(entry, TDEIO::UDS_HIDDEN , true);
+ }
+
if (!medium.iconName().isEmpty())
{
addAtom(entry, TDEIO::UDS_ICON_NAME, 0, medium.iconName());