Permalink
Browse files

* Make FlexibleView set an appropriate emptiness tooltip when loading…

… a playlist.
  • Loading branch information...
1 parent edf9179 commit b6cc52f7c9e310415fa8fceda87eb774e2592db3 @muesli muesli committed Nov 14, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/libtomahawk/playlist/FlexibleView.cpp
@@ -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!" ) );
}

0 comments on commit b6cc52f

Please sign in to comment.