mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-26 12:53:41 +01:00
don't create new revisions for non-local playlists
this can get called when setting a new revision, because creating a new EchonestControl resets the changed timer, which fires and reports that the controls have changed
This commit is contained in:
parent
bffec042bd
commit
a367dc5ede
@ -281,6 +281,8 @@ DynamicWidget::controlsChanged()
|
|||||||
if( m_runningOnDemand )
|
if( m_runningOnDemand )
|
||||||
generateOrStart(); // as if the stop button were pressed
|
generateOrStart(); // as if the stop button were pressed
|
||||||
|
|
||||||
|
if( !m_playlist->author()->isLocal() )
|
||||||
|
return;
|
||||||
m_playlist->createNewRevision();
|
m_playlist->createNewRevision();
|
||||||
m_seqRevLaunched++;
|
m_seqRevLaunched++;
|
||||||
}
|
}
|
||||||
@ -292,6 +294,8 @@ DynamicWidget::controlChanged( const Tomahawk::dyncontrol_ptr& control )
|
|||||||
if( m_runningOnDemand )
|
if( m_runningOnDemand )
|
||||||
generateOrStart(); // as if the stop button were pressed
|
generateOrStart(); // as if the stop button were pressed
|
||||||
|
|
||||||
|
if( !m_playlist->author()->isLocal() )
|
||||||
|
return;
|
||||||
m_playlist->createNewRevision();
|
m_playlist->createNewRevision();
|
||||||
m_seqRevLaunched++;
|
m_seqRevLaunched++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user