mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 09:04:33 +02:00
Don't crash when readding a resolver with ScriptCollection.
This commit is contained in:
@@ -539,6 +539,7 @@ SourcesModel::onScriptCollectionRemoved( const collection_ptr& collection )
|
|||||||
m_cloudGroup->removeChild( item );
|
m_cloudGroup->removeChild( item );
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
|
||||||
|
dynamic_cast< QObject* >( m_scriptCollectionPages.value( collection ) )->deleteLater();
|
||||||
m_scriptCollectionPages.remove( collection );
|
m_scriptCollectionPages.remove( collection );
|
||||||
m_scriptCollections.remove( collection );
|
m_scriptCollections.remove( collection );
|
||||||
item->deleteLater();
|
item->deleteLater();
|
||||||
|
Reference in New Issue
Block a user