From 2d7eebdbf07d374c23e40a01efec3d486f46a693 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 26 Jun 2018 05:52:50 +0000 Subject: improved plugin search git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8058 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/general.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/qmmpui/general.cpp') diff --git a/src/qmmpui/general.cpp b/src/qmmpui/general.cpp index d93dcd5c6..c233ef2d4 100644 --- a/src/qmmpui/general.cpp +++ b/src/qmmpui/general.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2014 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -37,13 +37,9 @@ void General::loadPlugins() m_cache = new QList; QSettings settings (Qmmp::configFile(), QSettings::IniFormat); - QDir pluginsDir (Qmmp::pluginsPath()); - pluginsDir.cd("General"); - QStringList filters; - filters << "*.dll" << "*.so"; - foreach (QString fileName, pluginsDir.entryList(filters, QDir::Files)) + foreach (QString filePath, Qmmp::findPlugins("General")) { - QmmpUiPluginCache *item = new QmmpUiPluginCache(pluginsDir.absoluteFilePath(fileName), &settings); + QmmpUiPluginCache *item = new QmmpUiPluginCache(filePath, &settings); if(item->hasError()) { delete item; -- cgit v1.2.3-13-gbd6f