From ba3ce4bdb9f82a96f418b19ecb4603528bb743ac Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Thu, 26 May 2011 22:05:25 -0400 Subject: [PATCH] better grammar (cherry picked from commit 7676f43a79e12c890c1b57f716249c68fc0ea6ac) --- .../playlist/dynamic/echonest/EchonestControl.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/playlist/dynamic/echonest/EchonestControl.cpp b/src/libtomahawk/playlist/dynamic/echonest/EchonestControl.cpp index f6ca4dc37..bdd939a44 100644 --- a/src/libtomahawk/playlist/dynamic/echonest/EchonestControl.cpp +++ b/src/libtomahawk/playlist/dynamic/echonest/EchonestControl.cpp @@ -688,11 +688,16 @@ Tomahawk::EchonestControl::calculateSummary() QString ascdesc = qobject_cast< QComboBox* >( m_match.data() )->currentText().toLower(); summary = QString( "sorted in %1 %2 order" ).arg( ascdesc ).arg( sortType ); - } else if( selectedType() == "Mood" || selectedType() == "Style" ) { + } else if( selectedType() == "Mood" ) { Q_ASSERT( !m_input.isNull() ); Q_ASSERT( qobject_cast< QComboBox* >( m_input.data() ) ); QString text = qobject_cast< QComboBox* >( m_input.data() )->currentText().toLower(); - summary = QString( "with %1 %2" ).arg( selectedType() == "Mood" ? "mood" : "style" ).arg( text ); + summary = QString( "with a %1 mood" ).arg( text ); + } else if( selectedType() == "Style" ) { + Q_ASSERT( !m_input.isNull() ); + Q_ASSERT( qobject_cast< QComboBox* >( m_input.data() ) ); + QString text = qobject_cast< QComboBox* >( m_input.data() )->currentText().toLower(); + summary = QString( "in a %1 style" ).arg( text ); } m_summary = summary; }