mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 01:09:42 +01:00
autoupdate fixes: init on creation, and every 10 not 100 mins
(cherry picked from commit ff04ab3b922fdf44d18751546b371ffa7ed1c941)
This commit is contained in:
parent
753e1b3c90
commit
68f03dbd13
@ -64,6 +64,8 @@ PlaylistUpdaterInterface::PlaylistUpdaterInterface( const playlist_ptr& pl )
|
||||
connect( m_timer, SIGNAL( timeout() ), this, SLOT( updateNow() ) );
|
||||
|
||||
QTimer::singleShot( 0, this, SLOT( doSave() ) );
|
||||
|
||||
setAutoUpdate( m_autoUpdate );
|
||||
}
|
||||
|
||||
PlaylistUpdaterInterface::PlaylistUpdaterInterface( const playlist_ptr& pl, int interval, bool autoUpdate )
|
||||
|
@ -262,7 +262,7 @@ XSPFLoader::gotBody()
|
||||
|
||||
// 10 minute default---for now, no way to change it
|
||||
connect( m_playlist.data(), SIGNAL( revisionLoaded( Tomahawk::PlaylistRevision ) ), this, SLOT( playlistCreated() ) );
|
||||
new Tomahawk::XspfUpdater( m_playlist, 6000000, m_autoUpdate, m_url.toString() );
|
||||
new Tomahawk::XspfUpdater( m_playlist, 600000, m_autoUpdate, m_url.toString() );
|
||||
emit ok( m_playlist );
|
||||
}
|
||||
else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user