mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-26 04:43:06 +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
@ -280,18 +280,22 @@ DynamicWidget::controlsChanged()
|
||||
// if we're playing a station, stop it in either case
|
||||
if( m_runningOnDemand )
|
||||
generateOrStart(); // as if the stop button were pressed
|
||||
|
||||
|
||||
if( !m_playlist->author()->isLocal() )
|
||||
return;
|
||||
m_playlist->createNewRevision();
|
||||
m_seqRevLaunched++;
|
||||
}
|
||||
|
||||
void
|
||||
DynamicWidget::controlChanged( const Tomahawk::dyncontrol_ptr& control )
|
||||
{
|
||||
{
|
||||
// if we're playing a station, stop it in either case
|
||||
if( m_runningOnDemand )
|
||||
generateOrStart(); // as if the stop button were pressed
|
||||
|
||||
|
||||
if( !m_playlist->author()->isLocal() )
|
||||
return;
|
||||
m_playlist->createNewRevision();
|
||||
m_seqRevLaunched++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user