mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 16:14:40 +02:00
Fewer crashes and bugs :)
This commit is contained in:
@@ -512,6 +512,8 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion )
|
|||||||
endGroup();
|
endGroup();
|
||||||
|
|
||||||
setPlaylistUpdaters( updaters );
|
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 ) ) );
|
connect( m_toggleCheckbox, SIGNAL( toggled( bool ) ), this, SLOT( setAutoUpdate( bool ) ) );
|
||||||
#endif
|
#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++ )
|
for ( int i = 0; i < m_playlists.size(); i++ )
|
||||||
{
|
{
|
||||||
|
if ( m_playlists[ i ].isNull() )
|
||||||
|
continue;
|
||||||
|
|
||||||
if ( m_playlists[ i ]->guid() == p->guid() )
|
if ( m_playlists[ i ]->guid() == p->guid() )
|
||||||
{
|
{
|
||||||
QModelIndex idx = index( i, 0, QModelIndex() );
|
QModelIndex idx = index( i, 0, QModelIndex() );
|
||||||
|
Reference in New Issue
Block a user