Diffstat (limited to 'noncore/graphics/opie-eye/impl/doc/doc_lister.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/impl/doc/doc_lister.cpp | 12 |
1 files changed, 11 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 4a491e2..5281b75 100644 --- a/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp +++ b/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp @@ -94,6 +94,16 @@ QStringList Doc_DirLister::files()const { } -void Doc_DirLister::deleteImage( const QString& ) +void Doc_DirLister::deleteImage( const QString& f) { + /* + * find the file in the set of doclnks + */ + QListIterator<DocLnk> dit(m_ds.children()); + for( ; dit.current(); ++dit) { + if ( f == (*dit)->file() ) { + (*dit)->removeFiles(); + return; + } + } } |