Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/gui/widgets/EffectRackView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ void EffectRackView::deletePlugin( EffectView* view )
Effect * e = view->effect();
m_effectViews.erase( qFind( m_effectViews.begin(), m_effectViews.end(), view ) );
delete view;
if( m_effectViews.size() == 0 )
{
fxChain()->m_enabledModel.setValue( false );
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since EffectChain::clear already have the same functionality, I think you can implement this in EffectChain::removeEffect instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in d3e65ca

fxChain()->removeEffect( e );
e->deleteLater();
update();
Expand Down