1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 03:40:16 +02:00

don't compare any user visible strings

This commit is contained in:
Stefan Derkits
2013-01-09 16:23:41 +01:00
parent 41c688aa68
commit a8010e2bb4

View File

@@ -551,8 +551,8 @@ Tomahawk::EchonestControl::updateData()
m_matchString = match->currentText();
m_matchData = match->itemData( match->currentIndex() ).toString();
QString songType = combo->currentText().toLower();
if ( match->currentText() == "is not" )
QString songType = combo->itemData( combo->currentIndex() ).toString();
if ( match->currentIndex() == 1 )
songType.append( ":false" );
m_data.first = Echonest::DynamicPlaylist::SongType;
@@ -904,8 +904,8 @@ Tomahawk::EchonestControl::calculateSummary()
Q_ASSERT( !m_match.isNull() );
Q_ASSERT( qobject_cast< QComboBox* >( m_match.data() ) );
QString isOrIsNot = qobject_cast< QComboBox* >( m_match.data() )->currentText().toLower();
if ( isOrIsNot == "is" )
QComboBox* combo = qobject_cast< QComboBox* >( m_match.data() );
if ( combo->currentIndex() == 0 )
summary = tr( "where song type is %1" ).arg( text );
else
summary = tr( "where song type is not %1" ).arg( text );