mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-03 07:33:49 +01: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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user