mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
* Fix crash when source goes offline.
This commit is contained in:
@@ -41,8 +41,8 @@ Source::~Source()
|
|||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << friendlyName();
|
qDebug() << Q_FUNC_INFO << friendlyName();
|
||||||
|
|
||||||
DatabaseCommand_SourceOffline* cmd = new DatabaseCommand_SourceOffline( id() );
|
/* DatabaseCommand_SourceOffline* cmd = new DatabaseCommand_SourceOffline( id() );
|
||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );
|
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -85,7 +85,6 @@ Source::remove()
|
|||||||
emit offline();
|
emit offline();
|
||||||
m_collections.clear();
|
m_collections.clear();
|
||||||
SourceList::instance()->remove( this );
|
SourceList::instance()->remove( this );
|
||||||
deleteLater();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -67,7 +67,6 @@ SourceList::remove( Tomahawk::source_ptr& s )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
remove( s.data() );
|
remove( s.data() );
|
||||||
s.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -91,6 +90,7 @@ SourceList::remove( Tomahawk::Source* s )
|
|||||||
}
|
}
|
||||||
|
|
||||||
emit sourceRemoved( src );
|
emit sourceRemoved( src );
|
||||||
|
src.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user