Merge pull request #1550 from LMMS/revert-1519-i1352
Revert "Proposed fix for 1352 Ifreeze when adding instruments or moving...
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
|
||||
#include "Track.h"
|
||||
#include "JournallingObject.h"
|
||||
#include "InstrumentTrack.h"
|
||||
|
||||
|
||||
class QVBoxLayout;
|
||||
@@ -183,23 +182,6 @@ signals:
|
||||
|
||||
} ;
|
||||
|
||||
class InstrumentLoaderThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
InstrumentLoaderThread( QObject *parent = 0 , InstrumentTrack *it = 0, QString name = "" );
|
||||
|
||||
void run();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
InstrumentTrack *m_it;
|
||||
QString m_name;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user