diff --git a/src/libtomahawk/playlist/treemodel.cpp b/src/libtomahawk/playlist/treemodel.cpp index 60d887c90..549459363 100644 --- a/src/libtomahawk/playlist/treemodel.cpp +++ b/src/libtomahawk/playlist/treemodel.cpp @@ -297,7 +297,7 @@ TreeModel::data( const QModelIndex& index, int role ) const { return entry->album()->name(); } - else if ( role = NameRole ) + else if ( role == NameRole ) { return entry->result()->track(); }