mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 04:51:53 +02:00
set dangling pointer to 0 so if a proxymodel gets called during resetting, it can tell if a plitem is gone
This commit is contained in:
parent
18453f886f
commit
bd54916fe3
src/libtomahawk/playlist
@ -145,6 +145,7 @@ PlaylistModel::clear()
|
||||
{
|
||||
emit beginResetModel();
|
||||
delete m_rootItem;
|
||||
m_rootItem = 0;
|
||||
emit endResetModel();
|
||||
m_rootItem = new PlItem( 0, this );
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ public:
|
||||
|
||||
Tomahawk::playlist_ptr playlist() const { return m_playlist; }
|
||||
|
||||
void loadPlaylist( const Tomahawk::playlist_ptr& playlist, bool loadEntries = true );
|
||||
virtual void loadPlaylist( const Tomahawk::playlist_ptr& playlist, bool loadEntries = true );
|
||||
void loadHistory( const Tomahawk::source_ptr& source, unsigned int amount = 50 );
|
||||
|
||||
void clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user