mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 17:14:00 +02: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:
@@ -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++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user