mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* More debug output when trying to load a library.
This commit is contained in:
@@ -41,6 +41,9 @@ SipHandler::loadPlugins()
|
|||||||
|
|
||||||
foreach ( QString fileName, pluginsDir.entryList( QDir::Files ) )
|
foreach ( QString fileName, pluginsDir.entryList( QDir::Files ) )
|
||||||
{
|
{
|
||||||
|
if ( !QLibrary::isLibrary( fileName ) )
|
||||||
|
continue;
|
||||||
|
|
||||||
qDebug() << "Trying to load plugin:" << pluginsDir.absoluteFilePath( fileName );
|
qDebug() << "Trying to load plugin:" << pluginsDir.absoluteFilePath( fileName );
|
||||||
|
|
||||||
QPluginLoader loader( pluginsDir.absoluteFilePath( fileName ) );
|
QPluginLoader loader( pluginsDir.absoluteFilePath( fileName ) );
|
||||||
@@ -51,6 +54,10 @@ SipHandler::loadPlugins()
|
|||||||
qDebug() << "Loaded plugin:" << loader.fileName();
|
qDebug() << "Loaded plugin:" << loader.fileName();
|
||||||
loadPlugin( plugin );
|
loadPlugin( plugin );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
qDebug() << "Error loading library:" << loader.errorString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user