mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-05 06:59:07 +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()
|
const TCPLines& PlayableTrackControls::StaticTCPLines()
|
||||||
{
|
{
|
||||||
static const struct PlayableTrackTCPLines
|
static TCPLines playableTrackTCPLines;
|
||||||
: TCPLines { PlayableTrackTCPLines() {
|
static std::once_flag flag;
|
||||||
(TCPLines&)*this =
|
std::call_once( flag, []{
|
||||||
CommonTrackControls::StaticTCPLines();
|
playableTrackTCPLines = CommonTrackControls::StaticTCPLines();
|
||||||
insert( end(), {
|
playableTrackTCPLines.insert( playableTrackTCPLines.end(), {
|
||||||
#ifdef EXPERIMENTAL_DA
|
#ifdef EXPERIMENTAL_DA
|
||||||
// DA: Has Mute and Solo on separate lines.
|
// DA: Has Mute and Solo on separate lines.
|
||||||
{ TCPLine::kItemMute, kTrackInfoBtnSize + 1, 1,
|
{ TCPLine::kItemMute, kTrackInfoBtnSize + 1, 1,
|
||||||
@ -214,6 +215,6 @@ const TCPLines& PlayableTrackControls::StaticTCPLines()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} } playableTrackTCPLines;
|
} );
|
||||||
return playableTrackTCPLines;
|
return playableTrackTCPLines;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user