1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 00:24:12 +02:00

* Fixed crash, hopefully.

This commit is contained in:
Christian Muehlhaeuser
2011-02-27 20:33:01 +01:00
parent 0e730f91f3
commit ce2db3aefd
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ ControlConnection::setupDbSyncConnection( bool ondemand )
qDebug() << Q_FUNC_INFO << ondemand << m_source->id();
Q_ASSERT( m_source->id() > 0 );
if( ! m_dbconnkey.isEmpty() )
if( !m_dbconnkey.isEmpty() )
{
qDebug() << "Connecting to DBSync offer from peer...";
m_dbsyncconn = new DBSyncConnection( m_servent, m_source );

View File

@@ -609,7 +609,7 @@ Servent::remoteIODeviceFactory( const result_ptr& result )
const QString sourceName = parts.at( 0 );
const QString fileId = parts.at( 1 );
source_ptr s = SourceList::instance()->get( sourceName );
if ( s.isNull() )
if ( s.isNull() || !s->controlConnection() )
return sp;
ControlConnection* cc = s->controlConnection();