mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 00:03:52 +02:00
DirManager.cpp does not depend on Sequence.cpp...
... This does not yet break any dependency cycles
This commit is contained in:
@@ -867,7 +867,9 @@ bool Sequence::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
|
||||
} // while
|
||||
|
||||
mBlock.push_back(wb);
|
||||
mDirManager->SetLoadingTarget(&mBlock, mBlock.size() - 1);
|
||||
auto index = mBlock.size() - 1;
|
||||
mDirManager->SetLoadingTarget(
|
||||
[this, index] () -> BlockFilePtr& { return mBlock[index].f; } );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user