mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
Fix adding of controls that wouldn't go to the right place.
This commit is contained in:
@@ -143,7 +143,7 @@ void DynamicControlList::addNewControl()
|
|||||||
m_layout->removeItem( m_collapseLayout );
|
m_layout->removeItem( m_collapseLayout );
|
||||||
|
|
||||||
dyncontrol_ptr control = m_generator->createControl();
|
dyncontrol_ptr control = m_generator->createControl();
|
||||||
m_controls.append( new DynamicControlWrapper( control, m_layout, m_controls.size(), this ) );
|
m_controls.append( new DynamicControlWrapper( control, m_layout, m_layout->rowCount(), this ) );
|
||||||
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() ) );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user