aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-02-24 11:23:04 -0500
committerKen Moore <ken@ixsystems.com>2017-02-24 11:23:04 -0500
commit92a819fa17ea240eeaada027420ed1fd7b84f5e9 (patch)
tree374ede9721eff91f18f01fd066d435de2f769ea4 /src-qt5/core/lumina-desktop
parentQuick fix for the "Directory" XDG desktop type detection/verification. (diff)
downloadlumina-92a819fa17ea240eeaada027420ed1fd7b84f5e9.tar.gz
lumina-92a819fa17ea240eeaada027420ed1fd7b84f5e9.tar.bz2
lumina-92a819fa17ea240eeaada027420ed1fd7b84f5e9.zip
Update the Lumina Desktop /media watcher to allow both directories AND files to be detected/shown.
Diffstat (limited to 'src-qt5/core/lumina-desktop')
-rw-r--r--src-qt5/core/lumina-desktop/LDesktop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop/LDesktop.cpp b/src-qt5/core/lumina-desktop/LDesktop.cpp
index 92cef4d1..73ed6d47 100644
--- a/src-qt5/core/lumina-desktop/LDesktop.cpp
+++ b/src-qt5/core/lumina-desktop/LDesktop.cpp
@@ -376,11 +376,11 @@ void LDesktop::UpdateDesktop(){
}
//Also show anything available in the /media directory
QDir media("/media");
- QStringList mediadirs = media.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name);
+ QStringList mediadirs = media.entryList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot, QDir::Name);
for(int i=0; i<mediadirs.length(); i++){
filelist << media.absoluteFilePath(mediadirs[i]);
}
- qDebug() << "Found media Dirs:" << mediadirs;
+ //qDebug() << "Found media Dirs:" << mediadirs;
UpdateDesktopPluginArea();
bgDesktop->LoadItems(plugins, filelist);
}
bgstack15