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:
parent
b1a5626e94
commit
4b3682c1c5
@ -512,6 +512,8 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion )
|
||||
endGroup();
|
||||
|
||||
setPlaylistUpdaters( updaters );
|
||||
|
||||
remove( "playlistupdaters" );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
@ -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() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user