1
0
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:
v.audacity 2011-01-07 22:50:22 +00:00
parent 04e23a0889
commit ff398a27b3

View File

@ -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();