mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
fix build
This commit is contained in:
@@ -181,16 +181,16 @@ TwitterPlugin::refreshTwitterAuth()
|
|||||||
qDebug() << Q_FUNC_INFO << " begin";
|
qDebug() << Q_FUNC_INFO << " begin";
|
||||||
if( !m_twitterAuth.isNull() )
|
if( !m_twitterAuth.isNull() )
|
||||||
delete m_twitterAuth.data();
|
delete m_twitterAuth.data();
|
||||||
|
|
||||||
Q_ASSERT( TomahawkUtils::nam() != 0 );
|
Q_ASSERT( TomahawkUtils::nam() != 0 );
|
||||||
qDebug() << Q_FUNC_INFO << " with nam " << TomahawkUtils::nam();
|
qDebug() << Q_FUNC_INFO << " with nam " << TomahawkUtils::nam();
|
||||||
m_twitterAuth = QWeakPointer<TomahawkOAuthTwitter>( new TomahawkOAuthTwitter( TomahawkUtils::nam(), this ) );
|
m_twitterAuth = QWeakPointer<TomahawkOAuthTwitter>( new TomahawkOAuthTwitter( TomahawkUtils::nam(), this ) );
|
||||||
|
|
||||||
if( m_twitterAuth.isNull() )
|
if( m_twitterAuth.isNull() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
m_twitterAuth.data()->setOAuthToken( settings->twitterOAuthToken().toLatin1() );
|
m_twitterAuth.data()->setOAuthToken( twitterOAuthToken().toLatin1() );
|
||||||
m_twitterAuth.data()->setOAuthTokenSecret( settings->twitterOAuthTokenSecret().toLatin1() );
|
m_twitterAuth.data()->setOAuthTokenSecret( twitterOAuthTokenSecret().toLatin1() );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -203,8 +203,8 @@ TwitterConfigWidget::startPostGotTomahawkStatus()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
TomahawkOAuthTwitter *twitAuth = new TomahawkOAuthTwitter( TomahawkUtils::nam(), this );
|
TomahawkOAuthTwitter *twitAuth = new TomahawkOAuthTwitter( TomahawkUtils::nam(), this );
|
||||||
twitAuth->setOAuthToken( s->twitterOAuthToken().toLatin1() );
|
twitAuth->setOAuthToken( m_plugin->twitterOAuthToken().toLatin1() );
|
||||||
twitAuth->setOAuthTokenSecret( s->twitterOAuthTokenSecret().toLatin1() );
|
twitAuth->setOAuthTokenSecret( m_plugin->twitterOAuthTokenSecret().toLatin1() );
|
||||||
QTweetAccountVerifyCredentials *credVerifier = new QTweetAccountVerifyCredentials( twitAuth, this );
|
QTweetAccountVerifyCredentials *credVerifier = new QTweetAccountVerifyCredentials( twitAuth, this );
|
||||||
connect( credVerifier, SIGNAL( parsedUser(const QTweetUser &) ), SLOT( postGotTomahawkStatusAuthVerifyReply(const QTweetUser &) ) );
|
connect( credVerifier, SIGNAL( parsedUser(const QTweetUser &) ), SLOT( postGotTomahawkStatusAuthVerifyReply(const QTweetUser &) ) );
|
||||||
credVerifier->verify();
|
credVerifier->verify();
|
||||||
|
Reference in New Issue
Block a user