Merge pull request #2681 from Fastigium/copyconstructorcleanup
Get rid of another copy constructor call to prevent Qt5 crashes
This commit is contained in:
@@ -194,11 +194,6 @@ public:
|
||||
return m_fxChannels.size();
|
||||
}
|
||||
|
||||
inline QVector<FxChannel *> fxChannels() const
|
||||
{
|
||||
return m_fxChannels;
|
||||
}
|
||||
|
||||
FxRouteVector m_fxRoutes;
|
||||
|
||||
private:
|
||||
|
||||
@@ -1191,9 +1191,9 @@ QMenu * InstrumentTrackView::createFxMenu(QString title, QString newFxLabel)
|
||||
fxMenu->addAction( newFxLabel, this, SLOT( createFxLine() ) );
|
||||
fxMenu->addSeparator();
|
||||
|
||||
for (int i = 0; i < Engine::fxMixer()->fxChannels().size(); ++i)
|
||||
for (int i = 0; i < Engine::fxMixer()->numChannels(); ++i)
|
||||
{
|
||||
FxChannel * currentChannel = Engine::fxMixer()->fxChannels()[i];
|
||||
FxChannel * currentChannel = Engine::fxMixer()->effectChannel( i );
|
||||
|
||||
if ( currentChannel != fxChannel )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user