1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

Unsubscribe when deleting

This commit is contained in:
Leo Franchi 2012-07-17 23:06:15 -04:00
parent 4fa77e15c2
commit ec10d9f723

View File

@ -132,7 +132,11 @@ SpotifyPlaylistUpdater::remove( bool askToDeletePlaylist )
void
SpotifyPlaylistUpdater::aboutToDelete()
{
if ( m_sync && !m_subscribed )
if ( m_subscribed )
{
m_spotify.data()->setSubscribedForPlaylist( playlist(), false );
}
else if ( m_sync )
{
if ( QThread::currentThread() != QApplication::instance()->thread() )
QMetaObject::invokeMethod( const_cast<SpotifyPlaylistUpdater*>(this), "checkDeleteDialog", Qt::BlockingQueuedConnection );