mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 00:24:12 +02:00
Only prefix JREEN logging with Qt4
This commit is contained in:
@@ -72,6 +72,7 @@ using namespace Accounts;
|
||||
#define TOMAHAWK_CAP_NODE_NAME QLatin1String( "http://tomahawk-player.org/" )
|
||||
|
||||
|
||||
#if QT_VERSION <= QT_VERSION_CHECK( 5, 0, 0 )
|
||||
void
|
||||
JreenMessageHandler( QtMsgType type, const char *msg )
|
||||
{
|
||||
@@ -91,6 +92,7 @@ JreenMessageHandler( QtMsgType type, const char *msg )
|
||||
abort();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
XmppSipPlugin::XmppSipPlugin( Account* account )
|
||||
@@ -102,7 +104,9 @@ XmppSipPlugin::XmppSipPlugin( Account* account )
|
||||
, m_pubSubManager( 0 )
|
||||
#endif
|
||||
{
|
||||
#if QT_VERSION <= QT_VERSION_CHECK( 5, 0, 0 )
|
||||
Jreen::Logger::addHandler( JreenMessageHandler );
|
||||
#endif
|
||||
|
||||
m_currentUsername = readUsername();
|
||||
m_currentServer = readServer();
|
||||
|
@@ -150,12 +150,13 @@ InfoSystem::~InfoSystem()
|
||||
void
|
||||
InfoSystem::init()
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
// tDebug() << Q_FUNC_INFO;
|
||||
if ( m_inited )
|
||||
return;
|
||||
|
||||
if ( !m_infoSystemCacheThreadController->cache() || !m_infoSystemWorkerThreadController->worker() )
|
||||
{
|
||||
// tLog() << "Worker not found";
|
||||
QTimer::singleShot( 0, this, SLOT( init() ) );
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user