mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-22 08:52:12 +02:00
fixup
This commit is contained in:
parent
d65531a2f8
commit
605834f7ab
src
dynamic/widgets
libtomahawk/database
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user