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:
parent
7e8dda2b1f
commit
fddefedfad
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user