mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-04 14:39:08 +02:00
Workaround for kDevelop crash
Thanks to PRL for the fix.
This commit is contained in:
parent
8a69be0305
commit
7857769f96
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user