Skip to content

Commit

Permalink
Fix adding of controls that wouldn't go to the right place.
Browse files Browse the repository at this point in the history
  • Loading branch information
lfranchi committed May 29, 2011
1 parent 07cb94b commit f5749a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void DynamicControlList::addNewControl()
m_layout->removeItem( m_collapseLayout );

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( changed() ), this, SLOT( controlChanged() ) );

Expand Down

0 comments on commit f5749a5

Please sign in to comment.