mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-15 18:06:32 +00:00
changed pluginDir test
This commit is contained in:
parent
e72ee23ea8
commit
f6331884c5
@ -228,14 +228,14 @@ const QDir &PluginContainer::pluginDir()
|
|||||||
foreach(const QString &p, list)
|
foreach(const QString &p, list)
|
||||||
{
|
{
|
||||||
QDir dir(p);
|
QDir dir(p);
|
||||||
if(dir.exists())
|
if(!dir.entryInfoList(QStringList(QString("libsnore_*.%1").arg(pluginExtention()))).isEmpty())
|
||||||
{
|
{
|
||||||
path = new QDir(dir);
|
path = new QDir(dir);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
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();
|
snoreDebug( SNORE_INFO ) << "PluginPath is :" << path->absolutePath();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user