1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-15 18:44:30 +02:00

* Fixed another TransferView issue.

This commit is contained in:
Christian Muehlhaeuser
2010-11-29 08:27:51 +01:00
parent fa01d21267
commit 40fc9d5c57

View File

@@ -42,6 +42,7 @@ TransferView::fileTransferRegistered( FileTransferConnection* ftc )
{
qDebug() << Q_FUNC_INFO;
connect( ftc, SIGNAL( updated() ), SLOT( onTransferUpdate() ) );
emit showWidget();
}
@@ -88,6 +89,9 @@ TransferView::onTransferUpdate()
m_index.insert( ftc, m_tree->invisibleRootItem()->childCount() - 1 );
}
if ( !ti )
return;
ti->setText( 0, ftc->source()->friendlyName() );
ti->setText( 1, QString( "%1 kb/s" ).arg( ftc->transferRate() / 1024 ) );
ti->setText( 2, QString( "%1 - %2" ).arg( ftc->track()->artist()->name() ).arg( ftc->track()->track() ) );