Revert "Proposed fix for 1352 Ifreeze when adding instruments or moving mixer tracks"

This commit is contained in:
Vesa V
2015-01-04 18:48:12 +02:00
parent 9a98adaaed
commit 1bb6fa072f
2 changed files with 1 additions and 36 deletions

View File

@@ -47,9 +47,6 @@
#include "Track.h"
TrackContainerView::TrackContainerView( TrackContainer * _tc ) :
QWidget(),
ModelView( NULL, this ),
@@ -328,8 +325,7 @@ void TrackContainerView::dropEvent( QDropEvent * _de )
InstrumentTrack * it = dynamic_cast<InstrumentTrack *>(
Track::create( Track::InstrumentTrack,
m_tc ) );
InstrumentLoaderThread *ilt = new InstrumentLoaderThread( this, it, value);
ilt->start();
it->loadInstrument( value );
//it->toggledInstrumentTrackButton( true );
_de->accept();
}
@@ -454,19 +450,6 @@ void TrackContainerView::scrollArea::wheelEvent( QWheelEvent * _we )
}
}
InstrumentLoaderThread::InstrumentLoaderThread( QObject *parent, InstrumentTrack *it, QString name) : QThread( parent )
{
m_it = it;
m_name = name;
}
void InstrumentLoaderThread::run()
{
m_it->loadInstrument( m_name );
}