1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-22 08:52:12 +02:00
This commit is contained in:
Leo Franchi 2011-01-16 18:43:23 -05:00
parent d65531a2f8
commit 605834f7ab
3 changed files with 4 additions and 3 deletions

@ -155,6 +155,7 @@ void DynamicControlList::addNewControl()
connect( m_controls.last(), SIGNAL( removeControl() ), this, SLOT( removeControl() ) );
connect( m_controls.last(), SIGNAL( changed() ), this, SLOT( controlChanged() ) );
m_lastControlDirty = false;
emit controlsChanged();
}

@ -192,7 +192,7 @@ DynamicWidget::modeChanged( int mode )
m_playlist->setMode( mode );
applyModeChange( mode );
m_playlist->createNewRevision();
controlsChanged();
}
void
@ -272,7 +272,7 @@ void
DynamicWidget::controlsChanged()
{
// save the current playlist
if( m_controls->lastControlDirty() )
if( !m_controls->lastControlDirty() )
m_playlist->generator()->controls().removeLast();
m_playlist->createNewRevision();
}

@ -74,7 +74,7 @@ DatabaseCommand_SetDynamicPlaylistRevision::postCommitHook()
Q_ASSERT( !playlist.isNull() );
return;
}
if( !m_controlsV.isEmpty() ) {
if( !m_controlsV.isEmpty() && m_controls.isEmpty() ) {
QList<QVariantMap> controlMap;
foreach( const QVariant& v, m_controlsV )
controlMap << v.toMap();