1
0
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:
Leo Franchi
2011-02-15 20:59:11 -05:00
parent 8d91fb6f99
commit e4060d397a

View File

@@ -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 );