utilities/mpnowplayingbanner/src/mpnowplayingwidget_p.cpp
changeset 51 560ce2306a17
parent 36 a0afa279b8fe
--- a/utilities/mpnowplayingbanner/src/mpnowplayingwidget_p.cpp	Fri Aug 06 16:51:36 2010 -0500
+++ b/utilities/mpnowplayingbanner/src/mpnowplayingwidget_p.cpp	Tue Aug 24 03:36:14 2010 -0500
@@ -301,7 +301,13 @@
     mPrimaryText->setPlainText( mPlaybackData->title() );
     mPrimaryText->setProperty( "state", mPrimaryText->property("state").toString() );
     
-    mSecondaryText->setPlainText( mPlaybackData->artist() );
+    QString data = mPlaybackData->artist();
+    if ( !data.isEmpty() ) {
+        mSecondaryText->setPlainText( data );
+    }
+    else {
+        mSecondaryText->setPlainText( hbTrId( "txt_mus_other_unknown" ) );
+    }
     mSecondaryText->setProperty( "state", mSecondaryText->property("state").toString() );
 }