mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +02:00
fixup
This commit is contained in:
@@ -155,6 +155,7 @@ void DynamicControlList::addNewControl()
|
|||||||
connect( m_controls.last(), SIGNAL( removeControl() ), this, SLOT( removeControl() ) );
|
connect( m_controls.last(), SIGNAL( removeControl() ), this, SLOT( removeControl() ) );
|
||||||
connect( m_controls.last(), SIGNAL( changed() ), this, SLOT( controlChanged() ) );
|
connect( m_controls.last(), SIGNAL( changed() ), this, SLOT( controlChanged() ) );
|
||||||
|
|
||||||
|
m_lastControlDirty = false;
|
||||||
emit controlsChanged();
|
emit controlsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -192,7 +192,7 @@ DynamicWidget::modeChanged( int mode )
|
|||||||
|
|
||||||
m_playlist->setMode( mode );
|
m_playlist->setMode( mode );
|
||||||
applyModeChange( mode );
|
applyModeChange( mode );
|
||||||
m_playlist->createNewRevision();
|
controlsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -272,7 +272,7 @@ void
|
|||||||
DynamicWidget::controlsChanged()
|
DynamicWidget::controlsChanged()
|
||||||
{
|
{
|
||||||
// save the current playlist
|
// save the current playlist
|
||||||
if( m_controls->lastControlDirty() )
|
if( !m_controls->lastControlDirty() )
|
||||||
m_playlist->generator()->controls().removeLast();
|
m_playlist->generator()->controls().removeLast();
|
||||||
m_playlist->createNewRevision();
|
m_playlist->createNewRevision();
|
||||||
}
|
}
|
||||||
|
@@ -74,7 +74,7 @@ DatabaseCommand_SetDynamicPlaylistRevision::postCommitHook()
|
|||||||
Q_ASSERT( !playlist.isNull() );
|
Q_ASSERT( !playlist.isNull() );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( !m_controlsV.isEmpty() ) {
|
if( !m_controlsV.isEmpty() && m_controls.isEmpty() ) {
|
||||||
QList<QVariantMap> controlMap;
|
QList<QVariantMap> controlMap;
|
||||||
foreach( const QVariant& v, m_controlsV )
|
foreach( const QVariant& v, m_controlsV )
|
||||||
controlMap << v.toMap();
|
controlMap << v.toMap();
|
||||||
|
Reference in New Issue
Block a user