Skip to content

Commit

Permalink
* Make FlexibleView set an appropriate emptiness tooltip when loading…
Browse files Browse the repository at this point in the history
… a playlist.
  • Loading branch information
muesli committed Nov 14, 2012
1 parent edf9179 commit b6cc52f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libtomahawk/playlist/FlexibleView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ FlexibleView::onModelChanged()
m_header->setPixmap( m_pixmap );
m_header->setCaption( m_model->title() );
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!" ) );
}


Expand Down

0 comments on commit b6cc52f

Please sign in to comment.