mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Eliminate GetActiveProject from Track.cpp
This commit is contained in:
@@ -248,14 +248,14 @@ namespace {
|
||||
bool Track::IsSyncLockSelected() const
|
||||
{
|
||||
#ifdef EXPERIMENTAL_SYNC_LOCK
|
||||
AudacityProject *p = GetActiveProject();
|
||||
if (!p || !ProjectSettings::Get( *p ).IsSyncLocked())
|
||||
return false;
|
||||
|
||||
auto pList = mList.lock();
|
||||
if (!pList)
|
||||
return false;
|
||||
|
||||
auto p = pList->GetOwner();
|
||||
if (!p || !ProjectSettings::Get( *p ).IsSyncLocked())
|
||||
return false;
|
||||
|
||||
auto shTrack = this->SubstituteOriginalTrack();
|
||||
if (!shTrack)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user