diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-11 11:53:55 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-11 11:53:55 +0000 |
| commit | 38bfcb867f294573ea374aeab34ffe564a995ed0 (patch) | |
| tree | 0a8c3706569681b7f1c20a6fa2df89f298a0d2e0 /src/qmmpui/general.cpp | |
| parent | 1ee17de296f8e0c302be17842447b91ddbab7bc3 (diff) | |
| download | qmmp-38bfcb867f294573ea374aeab34ffe564a995ed0.tar.gz qmmp-38bfcb867f294573ea374aeab34ffe564a995ed0.tar.bz2 qmmp-38bfcb867f294573ea374aeab34ffe564a995ed0.zip | |
added filter for plugin file type
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4146 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/general.cpp')
| -rw-r--r-- | src/qmmpui/general.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qmmpui/general.cpp b/src/qmmpui/general.cpp index 3b3c65a8b..8ee6b3358 100644 --- a/src/qmmpui/general.cpp +++ b/src/qmmpui/general.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2013 by Ilya Kotov * + * Copyright (C) 2008-2014 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -39,7 +39,9 @@ void General::loadPlugins() QSettings settings (Qmmp::configFile(), QSettings::IniFormat); QDir pluginsDir (Qmmp::pluginsPath()); pluginsDir.cd("General"); - foreach (QString fileName, pluginsDir.entryList(QDir::Files)) + QStringList filters; + filters << "*.dll" << "*.so"; + foreach (QString fileName, pluginsDir.entryList(filters, QDir::Files)) { QmmpUiPluginCache *item = new QmmpUiPluginCache(pluginsDir.absoluteFilePath(fileName), &settings); if(item->hasError()) |
