More controller clearing stuff
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1017 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -54,7 +54,6 @@ controller::controller( ControllerTypes _type, model * _parent ) :
|
||||
|
||||
controller::~controller()
|
||||
{
|
||||
printf("controller dtor\n");
|
||||
s_controllers.remove( s_controllers.indexOf( this ) );
|
||||
|
||||
if( engine::getSong() )
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
#include "bb_track.h"
|
||||
#include "bb_track_container.h"
|
||||
#include "config_mgr.h"
|
||||
#include "controller_rack_view.h"
|
||||
#include "embed.h"
|
||||
#include "envelope_and_lfo_parameters.h"
|
||||
#include "export_project_dialog.h"
|
||||
@@ -729,12 +730,17 @@ void song::clearProject( void )
|
||||
engine::getProjectNotes()->clear();
|
||||
}
|
||||
|
||||
/*
|
||||
// Move to function
|
||||
while( !m_controllers.empty() )
|
||||
{
|
||||
delete m_controllers.last();
|
||||
}
|
||||
*/
|
||||
/* if( engine::getControllerRackView() )
|
||||
{
|
||||
engine::getControllerRackView()->update();
|
||||
}*/
|
||||
|
||||
emit dataChanged();
|
||||
|
||||
engine::getProjectJournal()->clearInvalidJournallingObjects();
|
||||
engine::getProjectJournal()->clearJournal();
|
||||
|
||||
@@ -168,7 +168,6 @@ void controllerRackView::update( void )
|
||||
song * s = engine::getSong();
|
||||
// QVector<bool> view_map( fxChain()->m_effects.size(), FALSE );
|
||||
|
||||
printf("rack view update %d\n", s->m_controllers.size());
|
||||
setUpdatesEnabled( false );
|
||||
|
||||
int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user