aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-12-24 08:01:03 -0500
committerKen Moore <ken@pcbsd.org>2014-12-24 08:01:03 -0500
commit199ce2cd63519838d7ef038ff92aa89aab24c46c (patch)
tree115a9f5b54f41a9e5defda6a43c38fd39728a0e8 /lumina-fm
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-199ce2cd63519838d7ef038ff92aa89aab24c46c.tar.gz
lumina-199ce2cd63519838d7ef038ff92aa89aab24c46c.tar.bz2
lumina-199ce2cd63519838d7ef038ff92aa89aab24c46c.zip
Also make sure that the file operations detect/modify hidden files/dirs as well. This means that copy/past/remove will properly perform on every file/dir within the target directory.
Diffstat (limited to 'lumina-fm')
-rw-r--r--lumina-fm/FODialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lumina-fm/FODialog.cpp b/lumina-fm/FODialog.cpp
index 4c61eb68..079f7cec 100644
--- a/lumina-fm/FODialog.cpp
+++ b/lumina-fm/FODialog.cpp
@@ -72,16 +72,16 @@ QStringList FODialog::subfiles(QString dirpath, bool dirsfirst){
QDir dir(dirpath);
if(dirsfirst){
//Now recursively add any subdirectories and their contents
- QStringList subdirs = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::NoSort);
+ QStringList subdirs = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot | QDir::Hidden, QDir::NoSort);
for(int i=0; i<subdirs.length(); i++){ out << subfiles(dir.absoluteFilePath(subdirs[i]), dirsfirst); }
}
//List the files
- QStringList files = dir.entryList(QDir::Files | QDir::NoDotAndDotDot, QDir::NoSort);
+ QStringList files = dir.entryList(QDir::Files | QDir::NoDotAndDotDot | QDir::Hidden, QDir::NoSort);
for(int i=0; i<files.length(); i++){ out << dir.absoluteFilePath(files[i]); }
if(!dirsfirst){
//Now recursively add any subdirectories and their contents
- QStringList subdirs = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::NoSort);
+ QStringList subdirs = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot | QDir::Hidden, QDir::NoSort);
for(int i=0; i<subdirs.length(); i++){ out << subfiles(dir.absoluteFilePath(subdirs[i]), dirsfirst); }
}
}
bgstack15