diff options
Diffstat (limited to 'src/qmmpui')
| -rw-r--r-- | src/qmmpui/fileloader.cpp | 10 | ||||
| -rw-r--r-- | src/qmmpui/fileloader.h | 3 |
2 files changed, 4 insertions, 9 deletions
diff --git a/src/qmmpui/fileloader.cpp b/src/qmmpui/fileloader.cpp index d5d4c01af..9e48e8cfe 100644 --- a/src/qmmpui/fileloader.cpp +++ b/src/qmmpui/fileloader.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2010 by Ilya Kotov * + * Copyright (C) 2006-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -25,15 +25,12 @@ FileLoader::FileLoader(QObject *parent) : QThread(parent) { - m_filters = MetaDataManager::instance()->nameFilters(); m_finished = false; } - FileLoader::~FileLoader() {} - void FileLoader::addFile(const QString &path) { bool use_meta = PlaylistSettings::instance()->useMetadata(); @@ -42,14 +39,13 @@ void FileLoader::addFile(const QString &path) emit newPlayListItem(new PlayListItem(info)); } - void FileLoader::addDirectory(const QString& s) { - QList <FileInfo *> playList; + QStringList filters = MetaDataManager::instance()->nameFilters(); QDir dir(s); dir.setFilter(QDir::Files | QDir::Hidden | QDir::NoSymLinks); dir.setSorting(QDir::Name); - QFileInfoList l = dir.entryInfoList(m_filters); + QFileInfoList l = dir.entryInfoList(filters); foreach(QFileInfo info, l) { addFile(info.absoluteFilePath ()); diff --git a/src/qmmpui/fileloader.h b/src/qmmpui/fileloader.h index 7b3ad8862..afa356183 100644 --- a/src/qmmpui/fileloader.h +++ b/src/qmmpui/fileloader.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2010 by Ilya Kotov * + * Copyright (C) 2006-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -79,7 +79,6 @@ protected: void addDirectory(const QString &s); private: - QStringList m_filters; QQueue <QString> m_files; QQueue <QString> m_directories; bool m_finished; |
