mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
don't try to debug and crash. sourcetree--
This commit is contained in:
@@ -183,7 +183,7 @@ void SourceTreeItem::onDynamicPlaylistsDeleted( const QList< dynplaylist_ptr >&
|
|||||||
qlonglong piptr = pi->data( DynamicPlaylistPointer ).toLongLong();
|
qlonglong piptr = pi->data( DynamicPlaylistPointer ).toLongLong();
|
||||||
dynplaylist_ptr* pl = reinterpret_cast<dynplaylist_ptr*>(piptr);
|
dynplaylist_ptr* pl = reinterpret_cast<dynplaylist_ptr*>(piptr);
|
||||||
SourcesModel::SourceType type = static_cast<SourcesModel::SourceType>( pi->data( Type ).toInt() );
|
SourcesModel::SourceType type = static_cast<SourcesModel::SourceType>( pi->data( Type ).toInt() );
|
||||||
qDebug() << "Deleting dynamic playlsit:" << pl->isNull();
|
//qDebug() << "Deleting dynamic playlsit:" << pl->isNull();
|
||||||
if ( type == SourcesModel::DynamicPlaylistSource && ptr == qlonglong( pl->data() ) )
|
if ( type == SourcesModel::DynamicPlaylistSource && ptr == qlonglong( pl->data() ) )
|
||||||
{
|
{
|
||||||
m_dynplaylists.removeAll( p );
|
m_dynplaylists.removeAll( p );
|
||||||
|
Reference in New Issue
Block a user