1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 16:29:43 +01:00

Fewer crashes and bugs :)

This commit is contained in:
Leo Franchi 2012-04-30 20:39:49 -04:00
parent b1a5626e94
commit 4b3682c1c5
3 changed files with 11 additions and 0 deletions

View File

@ -512,6 +512,8 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion )
endGroup();
setPlaylistUpdaters( updaters );
remove( "playlistupdaters" );
}
}

View File

@ -63,6 +63,12 @@ XspfUpdater::XspfUpdater( const playlist_ptr& pl, int interval, bool autoUpdate,
connect( m_toggleCheckbox, SIGNAL( toggled( bool ) ), this, SLOT( setAutoUpdate( bool ) ) );
#endif
QVariantHash s = settings();
s[ "autoupdate" ] = m_autoUpdate;
s[ "interval" ] = interval;
s[ "xspfurl" ] = xspfUrl;
saveSettings( s );
}

View File

@ -191,6 +191,9 @@ RecentPlaylistsModel::updatePlaylist()
for ( int i = 0; i < m_playlists.size(); i++ )
{
if ( m_playlists[ i ].isNull() )
continue;
if ( m_playlists[ i ]->guid() == p->guid() )
{
QModelIndex idx = index( i, 0, QModelIndex() );