1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-04 06:29:07 +02:00

Workaround for kDevelop crash

Thanks to PRL for the fix.
This commit is contained in:
Steve Daulton 2019-07-08 00:38:19 +01:00
parent 8a69be0305
commit 7857769f96

View File

@ -195,13 +195,14 @@ void PlayableTrackControls::GetMuteSoloRect
}
#include <mutex>
const TCPLines& PlayableTrackControls::StaticTCPLines()
{
static const struct PlayableTrackTCPLines
: TCPLines { PlayableTrackTCPLines() {
(TCPLines&)*this =
CommonTrackControls::StaticTCPLines();
insert( end(), {
static TCPLines playableTrackTCPLines;
static std::once_flag flag;
std::call_once( flag, []{
playableTrackTCPLines = CommonTrackControls::StaticTCPLines();
playableTrackTCPLines.insert( playableTrackTCPLines.end(), {
#ifdef EXPERIMENTAL_DA
// DA: Has Mute and Solo on separate lines.
{ TCPLine::kItemMute, kTrackInfoBtnSize + 1, 1,
@ -214,6 +215,6 @@ const TCPLines& PlayableTrackControls::StaticTCPLines()
#endif
} );
} } playableTrackTCPLines;
} );
return playableTrackTCPLines;
}