diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-15 21:18:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-15 21:18:46 +0000 |
commit | 3b07f92513f03772805943cf9ee77921f7c8aafe (patch) | |
tree | 40551727899bcf4d1f717058fb2f2ab2dbfc70b2 /konqueror/sidebar/trees | |
parent | 6eb49d190a25e04bc155976a73cb047c7d5473a3 (diff) | |
download | tdebase-3b07f92513f03772805943cf9ee77921f7c8aafe.tar.gz tdebase-3b07f92513f03772805943cf9ee77921f7c8aafe.zip |
Part 2/2 of prior commit
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1175772 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konqueror/sidebar/trees')
-rw-r--r-- | konqueror/sidebar/trees/konq_sidebartree.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/konqueror/sidebar/trees/konq_sidebartree.cpp b/konqueror/sidebar/trees/konq_sidebartree.cpp index 191de6eeb..c1c98e07a 100644 --- a/konqueror/sidebar/trees/konq_sidebartree.cpp +++ b/konqueror/sidebar/trees/konq_sidebartree.cpp @@ -680,7 +680,14 @@ void KonqSidebarTree::scanDir( KonqSidebarTreeItem *parent, const TQString &path TQString filePath = TQString( *eIt ).prepend( path ); KURL u; u.setPath( filePath ); - if ( KMimeType::findByURL( u, 0, true )->name() == "application/x-desktop" ) + TQString foundMimeName = KMimeType::findByURL( u, 0, true )->name(); + if ( (foundMimeName == "application/x-desktop") + || (foundMimeName == "media/builtin-mydocuments") + || (foundMimeName == "media/builtin-mycomputer") + || (foundMimeName == "media/builtin-mynetworkplaces") + || (foundMimeName == "media/builtin-printers") + || (foundMimeName == "media/builtin-trash") + || (foundMimeName == "media/builtin-webbrowser") ) loadTopLevelItem( parent, filePath ); } |