summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/impl/doc/doc_lister.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp b/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp
index e43baed..f5c711a 100644
--- a/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp
+++ b/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp
@@ -58,17 +58,16 @@ QString Doc_DirLister::setStartPath(const QString&) {
58 static const QString Mtype_str("image/jpeg;image/gif;image/bmp;image/png"); 58 static const QString Mtype_str("image/jpeg;image/gif;image/bmp;image/png");
59 if (m_namemap.isEmpty()) { 59 if (m_namemap.isEmpty()) {
60 if (!m_docreads) { 60 if (!m_docreads) {
61 Global::findDocuments(&m_ds,Mtype_str); 61 Global::findDocuments(&m_ds,Mtype_str);
62 m_docreads = true; 62 m_docreads = true;
63 } 63 }
64 QListIterator<DocLnk> dit(m_ds.children()); 64 QListIterator<DocLnk> dit(m_ds.children());
65 for( ; dit.current(); ++dit) { 65 for( ; dit.current(); ++dit) {
66// if (! (*dit)->isValid()) continue;
67 if (!matchCat((*dit))) continue; 66 if (!matchCat((*dit))) continue;
68 m_namemap[(*dit)->name()]=(*dit)->file(); 67 m_namemap[(*dit)->name()]=(*dit)->file();
69 m_filemap[(*dit)->file()]=(*dit)->name(); 68 m_filemap[(*dit)->file()]=(*dit)->name();
70 } 69 }
71 } 70 }
72 return QString::null; 71 return QString::null;
73} 72}
74 73
@@ -177,15 +176,13 @@ QWidget* Doc_DirLister::widget(QWidget*parent)
177 catmb->setAllCategories( TRUE ); 176 catmb->setAllCategories( TRUE );
178 connect(catmb, SIGNAL(signalSelected(int)), this, SLOT(showCategory(int))); 177 connect(catmb, SIGNAL(signalSelected(int)), this, SLOT(showCategory(int)));
179 catmb->setCurrentCategory(-2); 178 catmb->setCurrentCategory(-2);
180 return catmb; 179 return catmb;
181} 180}
182 181
183void Doc_DirLister::showCategory(int which) 182void Doc_DirLister::showCategory(int which)
184{ 183{
185 Categories cat;
186 cat.load( categoryFileName() );
187 m_catFilter = which==-2?0:which; 184 m_catFilter = which==-2?0:which;
188 m_namemap.clear(); 185 m_namemap.clear();
189 setStartPath(""); 186 setStartPath("");
190 emit sig_reloadDir(); 187 emit sig_reloadDir();
191} 188}