mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 16:14:40 +02:00
Re-enable last.fm test login button when changing fields
This commit is contained in:
@@ -39,6 +39,9 @@ LastFmConfig::LastFmConfig( LastFmAccount* account )
|
|||||||
|
|
||||||
connect( m_ui->testLogin, SIGNAL( clicked( bool ) ), this, SLOT( testLogin( bool ) ) );
|
connect( m_ui->testLogin, SIGNAL( clicked( bool ) ), this, SLOT( testLogin( bool ) ) );
|
||||||
|
|
||||||
|
connect( m_ui->username, SIGNAL( textChanged( QString ) ), this, SLOT( enableButton() ) );
|
||||||
|
connect( m_ui->password, SIGNAL( textChanged( QString ) ), this, SLOT( enableButton() ) );
|
||||||
|
|
||||||
// #ifdef Q_WS_MAC // FIXME
|
// #ifdef Q_WS_MAC // FIXME
|
||||||
// m_ui->testLogin->setVisible( false );
|
// m_ui->testLogin->setVisible( false );
|
||||||
// #endif
|
// #endif
|
||||||
@@ -89,6 +92,14 @@ LastFmConfig::testLogin(bool )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
LastFmConfig::enableButton()
|
||||||
|
{
|
||||||
|
m_ui->testLogin->setText( tr( "Test Login" ) );
|
||||||
|
m_ui->testLogin->setEnabled( true );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
LastFmConfig::onLastFmFinished()
|
LastFmConfig::onLastFmFinished()
|
||||||
{
|
{
|
||||||
|
@@ -42,6 +42,9 @@ public slots:
|
|||||||
void testLogin( bool );
|
void testLogin( bool );
|
||||||
void onLastFmFinished();
|
void onLastFmFinished();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void enableButton();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LastFmAccount* m_account;
|
LastFmAccount* m_account;
|
||||||
Ui_LastFmConfig* m_ui;
|
Ui_LastFmConfig* m_ui;
|
||||||
|
Reference in New Issue
Block a user