1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

TWK-533: Show instructive error message if stations run out of tracks

This commit is contained in:
Leo Franchi 2012-03-01 23:04:36 -05:00
parent cdf7c11b29
commit 57d1c29d35

View File

@ -462,12 +462,16 @@ DynamicWidget::showPreview()
void
DynamicWidget::generatorError( const QString& title, const QString& content )
{
if ( m_runningOnDemand )
stopStation( false );
m_view->setDynamicWorking( false );
m_loading->fadeOut();
m_view->showMessageTimeout( title, content );
if ( m_runningOnDemand )
{
stopStation( false );
m_view->showMessage( tr( "Station ran out of tracks!\n\nTry tweaking the filters for a new set of songs to play." ) );
}
else
m_view->showMessageTimeout( title, content );
}