1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

* Style fix in QueryLabel.

This commit is contained in:
Christian Muehlhaeuser 2014-10-04 09:43:52 +02:00
parent 772690aff6
commit 515f2bb1a9

View File

@ -160,10 +160,10 @@ QueryLabel::onResultChanged()
void
QueryLabel::setResult( const Tomahawk::result_ptr& result )
{
if ( result.isNull() )
if ( !result )
return;
if ( m_result.isNull() || m_result.data() != result.data() )
if ( !m_result || m_result.data() != result.data() )
{
m_result = result;
connect( m_result.data(), SIGNAL( updated() ), SLOT( onResultChanged() ) );
@ -177,10 +177,10 @@ QueryLabel::setResult( const Tomahawk::result_ptr& result )
void
QueryLabel::setQuery( const Tomahawk::query_ptr& query )
{
if ( query.isNull() )
if ( !query )
return;
if ( m_query.isNull() || m_query.data() != query.data() )
if ( !m_query || m_query.data() != query.data() )
{
m_query = query;
m_artist = Artist::get( query->track()->artist() );