summaryrefslogtreecommitdiff
authoralwin <alwin>2004-02-22 20:06:29 (UTC)
committer alwin <alwin>2004-02-22 20:06:29 (UTC)
commit63e45b90437e78ee11753c6782516dc38c30dd24 (patch) (side-by-side diff)
treeb9a700b759ef5ee03c04f2df0e59e43c5a0bfa50
parent5738a3d33bdaeb69994f70fd5ec8aa49df98ceeb (diff)
downloadopie-63e45b90437e78ee11753c6782516dc38c30dd24.zip
opie-63e45b90437e78ee11753c6782516dc38c30dd24.tar.gz
opie-63e45b90437e78ee11753c6782516dc38c30dd24.tar.bz2
read more settings from opiestorage.cf
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/documentlist.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/launcher/documentlist.cpp b/core/launcher/documentlist.cpp
index fdba687..9736e65 100644
--- a/core/launcher/documentlist.cpp
+++ b/core/launcher/documentlist.cpp
@@ -432,24 +432,29 @@ DocumentListPrivate::DocumentListPrivate( ServerInterface *gui )
void DocumentListPrivate::appendDocpath(FileSystem*fs)
{
QDir defPath(fs->path()+"/Documents");
QFileInfo f(fs->path()+"/.opiestorage.cf");
if (!f.exists()) {
if (defPath.exists()) {
docPaths+=defPath.path();
}
return;
}
Config conf(f.filePath(), Config::File );
conf.setGroup("subdirs");
+ bool read_all = conf.readBoolEntry("wholemedia",true);
+ if (read_all) {
+ docPaths+=fs->path();
+ return;
+ }
QStringList subDirs = conf.readListEntry("subdirs",':');
if (subDirs.isEmpty()) {
if (defPath.exists()) {
docPaths+=defPath.path();
}
return;
}
for (unsigned c = 0; c < subDirs.count();++c) {
QDir docDir(QString(fs->path()+"/"+subDirs[c]));
if (docDir.exists()) {
docPaths+=docDir.path();
}