changed pluginDir test

This commit is contained in:
Patrick von Reth 2014-02-07 14:01:39 +01:00
parent e72ee23ea8
commit f6331884c5
1 changed files with 2 additions and 2 deletions

View File

@ -228,14 +228,14 @@ const QDir &PluginContainer::pluginDir()
foreach(const QString &p, list)
{
QDir dir(p);
if(dir.exists())
if(!dir.entryInfoList(QStringList(QString("libsnore_*.%1").arg(pluginExtention()))).isEmpty())
{
path = new QDir(dir);
break;
}
else
{
snoreDebug( SNORE_DEBUG ) << "Possible pluginpath:" << dir.absolutePath() << "does not exist";
snoreDebug( SNORE_DEBUG ) << "Possible pluginpath:" << dir.absolutePath() << "does not contain plugins.";
}
}
snoreDebug( SNORE_INFO ) << "PluginPath is :" << path->absolutePath();