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:
@@ -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() ) );
|
||||
|
Reference in New Issue
Block a user