mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Style fixes in NewReleasesWidget.
This commit is contained in:
@@ -172,7 +172,7 @@ NewReleasesWidget::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData request
|
|||||||
if ( !returnedData.contains("type") )
|
if ( !returnedData.contains("type") )
|
||||||
break;
|
break;
|
||||||
const QString type = returnedData["type"].toString();
|
const QString type = returnedData["type"].toString();
|
||||||
if( !returnedData.contains(type) )
|
if ( !returnedData.contains(type) )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
const QString releaseId = requestData.input.value< Tomahawk::InfoSystem::InfoStringHash >().value( "nr_id" );
|
const QString releaseId = requestData.input.value< Tomahawk::InfoSystem::InfoStringHash >().value( "nr_id" );
|
||||||
@@ -203,7 +203,6 @@ NewReleasesWidget::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData request
|
|||||||
}
|
}
|
||||||
|
|
||||||
QMetaObject::invokeMethod( loader, "go", Qt::QueuedConnection );
|
QMetaObject::invokeMethod( loader, "go", Qt::QueuedConnection );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -216,7 +215,7 @@ NewReleasesWidget::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData request
|
|||||||
void
|
void
|
||||||
NewReleasesWidget::infoSystemFinished( QString target )
|
NewReleasesWidget::infoSystemFinished( QString target )
|
||||||
{
|
{
|
||||||
if( m_loading )
|
if ( m_loading )
|
||||||
{
|
{
|
||||||
if ( target != s_newReleasesIdentifier )
|
if ( target != s_newReleasesIdentifier )
|
||||||
{
|
{
|
||||||
@@ -239,12 +238,11 @@ NewReleasesWidget::leftCrumbIndexChanged( QModelIndex index )
|
|||||||
{
|
{
|
||||||
tDebug( LOGVERBOSE ) << "NewReleases:: left crumb changed" << index.data();
|
tDebug( LOGVERBOSE ) << "NewReleases:: left crumb changed" << index.data();
|
||||||
QStandardItem* item = m_crumbModelLeft->itemFromIndex( m_sortedProxy->mapToSource( index ) );
|
QStandardItem* item = m_crumbModelLeft->itemFromIndex( m_sortedProxy->mapToSource( index ) );
|
||||||
if( !item )
|
if ( !item )
|
||||||
return;
|
return;
|
||||||
if( !item->data( Breadcrumb::ChartIdRole ).isValid() )
|
if ( !item->data( Breadcrumb::ChartIdRole ).isValid() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
QList<QModelIndex> indexes;
|
QList<QModelIndex> indexes;
|
||||||
while ( index.parent().isValid() )
|
while ( index.parent().isValid() )
|
||||||
{
|
{
|
||||||
@@ -252,7 +250,6 @@ NewReleasesWidget::leftCrumbIndexChanged( QModelIndex index )
|
|||||||
index = index.parent();
|
index = index.parent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const QString nrId = item->data( Breadcrumb::ChartIdRole ).toString();
|
const QString nrId = item->data( Breadcrumb::ChartIdRole ).toString();
|
||||||
const qlonglong nrExpires = item->data( Breadcrumb::ChartExpireRole ).toLongLong();
|
const qlonglong nrExpires = item->data( Breadcrumb::ChartExpireRole ).toLongLong();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user