summaryrefslogtreecommitdiff
authoralwin <alwin>2004-04-21 23:16:47 (UTC)
committer alwin <alwin>2004-04-21 23:16:47 (UTC)
commita0952719afc122e5a16d81253a9de86ee7e608b8 (patch) (unidiff)
tree27adc7b1f02de96ade6dd07be0f48e6dda868bf9
parent9230c9dd6bef33603cef1727be95dafc8065f66c (diff)
downloadopie-a0952719afc122e5a16d81253a9de86ee7e608b8.zip
opie-a0952719afc122e5a16d81253a9de86ee7e608b8.tar.gz
opie-a0952719afc122e5a16d81253a9de86ee7e608b8.tar.bz2
only adds valid doc-links to list
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/impl/doc/doc_lister.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp b/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp
index 73b2863..8066472 100644
--- a/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp
+++ b/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp
@@ -33,33 +33,33 @@ Doc_DirLister::Doc_DirLister()
33 33
34 m_namemap.clear(); 34 m_namemap.clear();
35 m_filemap.clear(); 35 m_filemap.clear();
36} 36}
37 37
38QString Doc_DirLister::defaultPath()const { 38QString Doc_DirLister::defaultPath()const {
39 return ""; QPEApplication::documentDir(); 39 return ""; QPEApplication::documentDir();
40} 40}
41 41
42QString Doc_DirLister::setStartPath(const QString&) { 42QString Doc_DirLister::setStartPath(const QString&) {
43 static const QString Mtype_str("image/jpeg;image/gif;image/bmp;image/png"); 43 static const QString Mtype_str("image/jpeg;image/gif;image/bmp;image/png");
44 if (m_namemap.isEmpty()) { 44 if (m_namemap.isEmpty()) {
45 DocLnkSet ds; 45 DocLnkSet ds;
46 Global::findDocuments(&ds,Mtype_str); 46 Global::findDocuments(&ds,Mtype_str);
47 QListIterator<DocLnk> dit(ds.children()); 47 QListIterator<DocLnk> dit(ds.children());
48 for( ; dit.current(); ++dit) { 48 for( ; dit.current(); ++dit) {
49 owarn << (*dit)->file() << oendl; 49 if (! (*dit)->isValid()) continue;
50 m_namemap[(*dit)->name()]=(*dit)->file(); 50 m_namemap[(*dit)->name()]=(*dit)->file();
51 m_filemap[(*dit)->file()]=(*dit)->name(); 51 m_filemap[(*dit)->file()]=(*dit)->name();
52 } 52 }
53 } 53 }
54 return QString::null; 54 return QString::null;
55} 55}
56 56
57QString Doc_DirLister::currentPath()const { 57QString Doc_DirLister::currentPath()const {
58 return QString::null; 58 return QString::null;
59} 59}
60 60
61 61
62QStringList Doc_DirLister::folders()const { 62QStringList Doc_DirLister::folders()const {
63 return QStringList(); 63 return QStringList();
64} 64}
65 65