commit ed74f285e3cd5a9ece4985ac82b79ab8ec04a023 branch master Author: Rick W. Chen Date: Wed Dec 1 07:13:55 2010 +1300 labels applet: change title text when labels are no longer empty diff --git a/src/context/applets/labels/LabelsApplet.cpp b/src/context/applets/labels/LabelsApplet.cpp index 9c75c0f..a7a8baf 100644 --- a/src/context/applets/labels/LabelsApplet.cpp +++ b/src/context/applets/labels/LabelsApplet.cpp @@ -630,6 +630,9 @@ LabelsApplet::toggleLabel( const QString &label ) m_addLabel.data()->completionObject()->setItems( m_allLabels ); m_addLabel.data()->lineEdit()->setText( saveText ); } + + if( !m_allLabels.isEmpty() ) + m_titleText = i18n( "Labels for %1 by %2", m_title, m_artist ); // usuallay the engine keeps track of label changes of the playing track // (except if the lables get auto added, this is why we have to keep m_userLabels up to date)