mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Style fix in QueryLabel.
This commit is contained in:
@@ -160,10 +160,10 @@ QueryLabel::onResultChanged()
|
|||||||
void
|
void
|
||||||
QueryLabel::setResult( const Tomahawk::result_ptr& result )
|
QueryLabel::setResult( const Tomahawk::result_ptr& result )
|
||||||
{
|
{
|
||||||
if ( result.isNull() )
|
if ( !result )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( m_result.isNull() || m_result.data() != result.data() )
|
if ( !m_result || m_result.data() != result.data() )
|
||||||
{
|
{
|
||||||
m_result = result;
|
m_result = result;
|
||||||
connect( m_result.data(), SIGNAL( updated() ), SLOT( onResultChanged() ) );
|
connect( m_result.data(), SIGNAL( updated() ), SLOT( onResultChanged() ) );
|
||||||
@@ -177,10 +177,10 @@ QueryLabel::setResult( const Tomahawk::result_ptr& result )
|
|||||||
void
|
void
|
||||||
QueryLabel::setQuery( const Tomahawk::query_ptr& query )
|
QueryLabel::setQuery( const Tomahawk::query_ptr& query )
|
||||||
{
|
{
|
||||||
if ( query.isNull() )
|
if ( !query )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( m_query.isNull() || m_query.data() != query.data() )
|
if ( !m_query || m_query.data() != query.data() )
|
||||||
{
|
{
|
||||||
m_query = query;
|
m_query = query;
|
||||||
m_artist = Artist::get( query->track()->artist() );
|
m_artist = Artist::get( query->track()->artist() );
|
||||||
|
Reference in New Issue
Block a user