diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-04-03 10:02:38 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-04-03 10:02:38 +0000 |
| commit | 761a48386b9e64097dda181be21dec414721e549 (patch) | |
| tree | 44af108d9a77e884bac358b37d85154a2f41e69e /src/qmmpui | |
| parent | 77c73788b140b700e78c03636b7d48bce5eebd48 (diff) | |
| download | qmmp-761a48386b9e64097dda181be21dec414721e549.tar.gz qmmp-761a48386b9e64097dda181be21dec414721e549.tar.bz2 qmmp-761a48386b9e64097dda181be21dec414721e549.zip | |
do not load all plugins in startup
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2148 90c681e8-e032-0410-971d-27865f9a5e38
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; |
