1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

* Make FlexibleView set an appropriate emptiness tooltip when loading a playlist.

This commit is contained in:
Christian Muehlhaeuser
2012-11-14 07:59:59 +01:00
parent edf91798f2
commit b6cc52f7c9

View File

@@ -318,6 +318,11 @@ FlexibleView::onModelChanged()
m_header->setPixmap( m_pixmap ); m_header->setPixmap( m_pixmap );
m_header->setCaption( m_model->title() ); m_header->setCaption( m_model->title() );
m_header->setDescription( m_model->description() ); m_header->setDescription( m_model->description() );
if ( m_model->isReadOnly() )
setEmptyTip( tr( "This playlist is currently empty." ) );
else
setEmptyTip( tr( "This playlist is currently empty. Add some tracks to it and enjoy the music!" ) );
} }