Get rid of another copy constructor call to prevent Qt5 crashes

Cf. the commit message of 3c7bfba
This commit is contained in:
Fastigium
2016-03-16 09:27:57 +01:00
parent e98b6a2966
commit 908175d5f1
2 changed files with 2 additions and 7 deletions

View File

@@ -194,11 +194,6 @@ public:
return m_fxChannels.size();
}
inline QVector<FxChannel *> fxChannels() const
{
return m_fxChannels;
}
FxRouteVector m_fxRoutes;
private:

View File

@@ -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 )
{