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

Don't crash when readding a resolver with ScriptCollection.

This commit is contained in:
Teo Mrnjavac
2013-02-15 14:02:55 +01:00
parent 1bf5787d74
commit 6f1a5d36a8

View File

@@ -539,6 +539,7 @@ SourcesModel::onScriptCollectionRemoved( const collection_ptr& collection )
m_cloudGroup->removeChild( item );
endRemoveRows();
dynamic_cast< QObject* >( m_scriptCollectionPages.value( collection ) )->deleteLater();
m_scriptCollectionPages.remove( collection );
m_scriptCollections.remove( collection );
item->deleteLater();