1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-31 01:30:02 +02:00

fix delete logic

This commit is contained in:
Leo Franchi
2011-01-16 18:55:20 -05:00
parent 605834f7ab
commit 8f976d82e1

View File

@@ -272,8 +272,9 @@ void
DynamicWidget::controlsChanged()
{
// save the current playlist
if( !m_controls->lastControlDirty() )
m_playlist->generator()->controls().removeLast();
if( !m_controls->lastControlDirty() ) {
m_playlist->generator()->removeControl( m_playlist->generator()->controls().last() );
}
m_playlist->createNewRevision();
}