mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
I guess actually fix the headless crash? Not sure why this should be
needed, but it works
This commit is contained in:
parent
3b40b9b4a9
commit
63c64de455
@ -188,6 +188,9 @@ ACLRegistry::isAuthorizedUser( const QString& dbid, const QString &username, ACL
|
||||
void
|
||||
ACLRegistry::getUserDecision( ACLRegistry::User user, const QString &username )
|
||||
{
|
||||
if ( TomahawkUtils::headless() )
|
||||
return;
|
||||
|
||||
tLog() << Q_FUNC_INFO;
|
||||
AclJobItem* job = new AclJobItem( user, username );
|
||||
m_jobQueue.enqueue( job );
|
||||
@ -198,6 +201,9 @@ ACLRegistry::getUserDecision( ACLRegistry::User user, const QString &username )
|
||||
void
|
||||
ACLRegistry::userDecision( ACLRegistry::User user )
|
||||
{
|
||||
if ( TomahawkUtils::headless() )
|
||||
return;
|
||||
|
||||
tLog() << Q_FUNC_INFO;
|
||||
m_cache.append( user );
|
||||
save();
|
||||
@ -212,6 +218,9 @@ ACLRegistry::userDecision( ACLRegistry::User user )
|
||||
void
|
||||
ACLRegistry::queueNextJob()
|
||||
{
|
||||
if ( TomahawkUtils::headless() )
|
||||
return;
|
||||
|
||||
if ( QThread::currentThread() != TOMAHAWK_APPLICATION::instance()->thread() )
|
||||
{
|
||||
QMetaObject::invokeMethod( this, "queueNextJob", Qt::QueuedConnection );
|
||||
|
@ -86,6 +86,7 @@ headless()
|
||||
void
|
||||
setHeadless( bool headless )
|
||||
{
|
||||
tLog() << Q_FUNC_INFO << "headless is" << (headless? "true" : "false");
|
||||
s_headless = headless;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user