From 4515ff72db76ba63dcf3b29b19d930b7e083d508 Mon Sep 17 00:00:00 2001 From: alwin Date: Mon, 07 Mar 2005 12:20:41 +0000 Subject: docLnk->isValid returns if the .doclnk file exists so its sensless here - we want the check if the real file exists. --- (limited to 'noncore') diff --git a/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp b/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp index 5281b75..d4da266 100644 --- a/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp +++ b/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp @@ -83,7 +83,8 @@ QStringList Doc_DirLister::files()const { QStringList out; QListIterator dit(m_ds.children()); for( ; dit.current(); ++dit) { - if (!(*dit)->isValid()) continue; + /* check if the real file exists! */ + if (!(*dit)->fileKnown()||!QFile::exists( (*dit)->file())) continue; if (!matchCat((*dit))) continue; QString s = (*dit)->name(); s+=char(0); -- cgit v0.9.0.2