mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-02 12:20:45 +02:00
Fix regression when posting twitter status message
This commit is contained in:
@@ -198,6 +198,7 @@ TwitterConfigWidget::autoConnectToggled( bool on )
|
|||||||
void
|
void
|
||||||
TwitterConfigWidget::startPostGotTomahawkStatus()
|
TwitterConfigWidget::startPostGotTomahawkStatus()
|
||||||
{
|
{
|
||||||
|
qDebug() << Q_FUNC_INFO;
|
||||||
m_postGTtype = ui->twitterTweetComboBox->currentText();
|
m_postGTtype = ui->twitterTweetComboBox->currentText();
|
||||||
|
|
||||||
if ( m_postGTtype != "Global Tweet" && ( ui->twitterUserTweetLineEdit->text().isEmpty() || ui->twitterUserTweetLineEdit->text() == "@" ) )
|
if ( m_postGTtype != "Global Tweet" && ( ui->twitterUserTweetLineEdit->text().isEmpty() || ui->twitterUserTweetLineEdit->text() == "@" ) )
|
||||||
@@ -224,6 +225,7 @@ TwitterConfigWidget::startPostGotTomahawkStatus()
|
|||||||
void
|
void
|
||||||
TwitterConfigWidget::postGotTomahawkStatusAuthVerifyReply( const QTweetUser &user )
|
TwitterConfigWidget::postGotTomahawkStatusAuthVerifyReply( const QTweetUser &user )
|
||||||
{
|
{
|
||||||
|
qDebug() << Q_FUNC_INFO;
|
||||||
if ( user.id() == 0 )
|
if ( user.id() == 0 )
|
||||||
{
|
{
|
||||||
QMessageBox::critical( this, tr("Tweetin' Error"), tr("Your saved credentials could not be verified.\nYou may wish to try re-authenticating.") );
|
QMessageBox::critical( this, tr("Tweetin' Error"), tr("Your saved credentials could not be verified.\nYou may wish to try re-authenticating.") );
|
||||||
@@ -232,6 +234,8 @@ TwitterConfigWidget::postGotTomahawkStatusAuthVerifyReply( const QTweetUser &use
|
|||||||
}
|
}
|
||||||
m_plugin->setTwitterScreenName( user.screenName() );
|
m_plugin->setTwitterScreenName( user.screenName() );
|
||||||
TomahawkOAuthTwitter *twitAuth = new TomahawkOAuthTwitter( TomahawkUtils::nam(), this );
|
TomahawkOAuthTwitter *twitAuth = new TomahawkOAuthTwitter( TomahawkUtils::nam(), this );
|
||||||
|
twitAuth->setOAuthToken( m_plugin->twitterOAuthToken().toLatin1() );
|
||||||
|
twitAuth->setOAuthTokenSecret( m_plugin->twitterOAuthTokenSecret().toLatin1() );
|
||||||
if ( m_postGTtype != "Direct Message" )
|
if ( m_postGTtype != "Direct Message" )
|
||||||
{
|
{
|
||||||
QTweetStatusUpdate *statUpdate = new QTweetStatusUpdate( twitAuth, this );
|
QTweetStatusUpdate *statUpdate = new QTweetStatusUpdate( twitAuth, this );
|
||||||
|
Reference in New Issue
Block a user