1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-25 20:33:20 +01:00

* Fix crash when source goes offline.

This commit is contained in:
Christian Muehlhaeuser 2011-02-16 08:31:21 +01:00
parent 7e8dda2b1f
commit fddefedfad
2 changed files with 3 additions and 4 deletions

View File

@ -41,8 +41,8 @@ Source::~Source()
{
qDebug() << Q_FUNC_INFO << friendlyName();
DatabaseCommand_SourceOffline* cmd = new DatabaseCommand_SourceOffline( id() );
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );
/* DatabaseCommand_SourceOffline* cmd = new DatabaseCommand_SourceOffline( id() );
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );*/
}
@ -85,7 +85,6 @@ Source::remove()
emit offline();
m_collections.clear();
SourceList::instance()->remove( this );
deleteLater();
}

View File

@ -67,7 +67,6 @@ SourceList::remove( Tomahawk::source_ptr& s )
return;
remove( s.data() );
s.clear();
}
@ -91,6 +90,7 @@ SourceList::remove( Tomahawk::Source* s )
}
emit sourceRemoved( src );
src.clear();
}
void