mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-18 17:10:05 +02:00
Make sure valgrind sees mIsSyncLocked is initialized, even though we're about to set it from prefs. Also, just initialize it directly, rather than calling SetSyncLock, as TrackPanel has not yet been created.
This commit is contained in:
parent
04e23a0889
commit
ff398a27b3
@ -807,9 +807,11 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
||||
mViewInfo.bRedrawWaveform = false;
|
||||
|
||||
mLockPlayRegion = false;
|
||||
bool bSyncLockTracks;
|
||||
gPrefs->Read(wxT("/GUI/SyncLockTracks"), &bSyncLockTracks, false);
|
||||
SetSyncLock(bSyncLockTracks);
|
||||
|
||||
// Make sure valgrind sees mIsSyncLocked is initialized, even
|
||||
// though we're about to set it from prefs.
|
||||
mIsSyncLocked = false;
|
||||
gPrefs->Read(wxT("/GUI/SyncLockTracks"), &mIsSyncLocked, false);
|
||||
|
||||
CreateMenusAndCommands();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user