mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
* Fixed trying to access invalid results in FileTransferConnection.
This commit is contained in:
@@ -142,6 +142,13 @@ FileTransferConnection::setup()
|
|||||||
void
|
void
|
||||||
FileTransferConnection::startSending( const Tomahawk::result_ptr& result )
|
FileTransferConnection::startSending( const Tomahawk::result_ptr& result )
|
||||||
{
|
{
|
||||||
|
if ( result.isNull() )
|
||||||
|
{
|
||||||
|
qDebug() << "Can't handle invalid result!";
|
||||||
|
shutdown();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_result = result;
|
m_result = result;
|
||||||
qDebug() << "Starting to transmit" << m_result->url();
|
qDebug() << "Starting to transmit" << m_result->url();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user