mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 10:33:59 +02:00
TWK-533: Show instructive error message if stations run out of tracks
This commit is contained in:
@@ -462,12 +462,16 @@ DynamicWidget::showPreview()
|
|||||||
void
|
void
|
||||||
DynamicWidget::generatorError( const QString& title, const QString& content )
|
DynamicWidget::generatorError( const QString& title, const QString& content )
|
||||||
{
|
{
|
||||||
if ( m_runningOnDemand )
|
|
||||||
stopStation( false );
|
|
||||||
|
|
||||||
m_view->setDynamicWorking( false );
|
m_view->setDynamicWorking( false );
|
||||||
m_loading->fadeOut();
|
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user