From ac140ff8a256e88532aa634a6f708f52a9750d1d Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sun, 14 Jun 2020 19:17:50 +0200 Subject: [PATCH] use actual instrument name for sorting by instrument --- src/audiomixerboard.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/audiomixerboard.cpp b/src/audiomixerboard.cpp index 88b198f3..021b6e22 100644 --- a/src/audiomixerboard.cpp +++ b/src/audiomixerboard.cpp @@ -788,10 +788,7 @@ void CAudioMixerBoard::ChangeFaderOrder ( const bool bDoSort, } else // ST_BY_INSTRUMENT { - // note that the sorting will not be the same as we would use QPair - // but this is not a problem since the order of the instrument IDs are arbitrary - // anyway - PairList << QPair ( QString::number ( vecpChanFader[i]->GetReceivedInstrument() ), i ); + PairList << QPair ( CInstPictures::GetName ( vecpChanFader[i]->GetReceivedInstrument() ), i ); } }