mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 10:33:59 +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 we're playing a station, stop it in either case
|
||||||
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++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
DynamicWidget::controlChanged( const Tomahawk::dyncontrol_ptr& control )
|
DynamicWidget::controlChanged( const Tomahawk::dyncontrol_ptr& control )
|
||||||
{
|
{
|
||||||
// if we're playing a station, stop it in either case
|
// if we're playing a station, stop it in either case
|
||||||
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++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user