1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-13 04:21:51 +02:00

* More debug output when trying to load a library.

This commit is contained in:
Christian Muehlhaeuser 2011-01-04 11:39:43 +01:00
parent 65914c9d64
commit 2d71bb3c62

View File

@ -41,6 +41,9 @@ SipHandler::loadPlugins()
foreach ( QString fileName, pluginsDir.entryList( QDir::Files ) )
{
if ( !QLibrary::isLibrary( fileName ) )
continue;
qDebug() << "Trying to load plugin:" << pluginsDir.absoluteFilePath( fileName );
QPluginLoader loader( pluginsDir.absoluteFilePath( fileName ) );
@ -51,6 +54,10 @@ SipHandler::loadPlugins()
qDebug() << "Loaded plugin:" << loader.fileName();
loadPlugin( plugin );
}
else
{
qDebug() << "Error loading library:" << loader.errorString();
}
}
}