-rw-r--r-- | noncore/graphics/opie-eye/impl/dir/dir_lister.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp b/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp index ff33cf2..5706598 100644 --- a/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp +++ b/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp @@ -35,33 +35,36 @@ QString Dir_DirLister::defaultPath()const { QString Dir_DirLister::setStartPath( const QString& path ) { m_currentDir.cd( path ); if (!m_currentDir.exists() ) m_currentDir.cd(defaultPath()); return m_currentDir.absPath(); } QString Dir_DirLister::currentPath()const { return m_currentDir.absPath(); } QStringList Dir_DirLister::folders()const { - return m_currentDir.entryList( QDir::Dirs ); + QStringList dirs = m_currentDir.entryList( QDir::Dirs ); + dirs.remove("."); + + return dirs; } QStringList Dir_DirLister::recFiles(const QString&aPath,int currentDepth)const { QStringList all; if (currentDepth>m_recDepth) return all; QString subPath; subPath = aPath; if (subPath.length()==0) { subPath="."; } QDir checkDir(currentPath()+"/"+aPath); QStringList p = checkDir.entryList( QDir::Dirs ); all+=checkDir.entryList(m_Filter,QDir::Files|QDir::Readable); |