mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Only remove playlists from saved list if that playlist was deleted and is still in our internal db
This commit is contained in:
parent
7f089714a6
commit
5d512c180f
@ -746,12 +746,14 @@ ViewManager::onWidgetDestroyed( QWidget* widget )
|
||||
for ( int i = 0; i < m_pageHistory.count(); i++ )
|
||||
{
|
||||
ViewPage* page = m_pageHistory.at( i );
|
||||
if ( page->widget() != widget )
|
||||
continue;
|
||||
|
||||
if ( playlistForInterface( page->playlistInterface() ).isNull() )
|
||||
if ( !playlistForInterface( page->playlistInterface() ).isNull() )
|
||||
{
|
||||
m_playlistViews.remove( playlistForInterface( page->playlistInterface() ) );
|
||||
}
|
||||
if ( dynamicPlaylistForInterface( page->playlistInterface() ).isNull() )
|
||||
if ( !dynamicPlaylistForInterface( page->playlistInterface() ).isNull() )
|
||||
{
|
||||
m_dynamicWidgets.remove( dynamicPlaylistForInterface( page->playlistInterface() ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user