mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 23:57:34 +02:00
* Clear window title when playback stopped.
This commit is contained in:
@@ -760,8 +760,14 @@ TomahawkWindow::audioStarted()
|
|||||||
void
|
void
|
||||||
TomahawkWindow::audioStopped()
|
TomahawkWindow::audioStopped()
|
||||||
{
|
{
|
||||||
|
|
||||||
ui->actionPlay->setText( tr( "Play" ) );
|
ui->actionPlay->setText( tr( "Play" ) );
|
||||||
|
|
||||||
|
tDebug() << Q_FUNC_INFO << AudioEngine::instance()->isStopped();
|
||||||
|
if ( AudioEngine::instance()->isStopped() )
|
||||||
|
{
|
||||||
|
m_currentTrack = result_ptr();
|
||||||
|
setWindowTitle( m_windowTitle );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -797,6 +803,7 @@ TomahawkWindow::onAccountAdded( Account* acc )
|
|||||||
connect( acc->sipPlugin(), SIGNAL( removeMenu( QMenu* ) ), this, SLOT( pluginMenuRemoved( QMenu* ) ) );
|
connect( acc->sipPlugin(), SIGNAL( removeMenu( QMenu* ) ), this, SLOT( pluginMenuRemoved( QMenu* ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TomahawkWindow::onAccountError()
|
TomahawkWindow::onAccountError()
|
||||||
{
|
{
|
||||||
@@ -806,7 +813,7 @@ TomahawkWindow::onAccountError()
|
|||||||
// TODO real error message from plugin kthxbbq
|
// TODO real error message from plugin kthxbbq
|
||||||
QMessageBox::warning( this,
|
QMessageBox::warning( this,
|
||||||
tr( "Authentication Error" ),
|
tr( "Authentication Error" ),
|
||||||
QString( "Error connecting to SIP: Authentication failed!" ),
|
tr( "Error connecting to SIP: Authentication failed!" ),
|
||||||
QMessageBox::Ok );
|
QMessageBox::Ok );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user