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:
parent
4fa77e15c2
commit
ec10d9f723
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user