1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-28 22:28:44 +02:00

Bug1988: Don't lose data in unusual inter-project copy-paste case

This commit is contained in:
Paul Licameli 2018-09-25 18:11:20 -04:00
parent d852bd3783
commit 4710d69f4c

View File

@ -6018,6 +6018,12 @@ void MenuCommandHandler::OnPaste(const CommandContext &context)
AudacityProject::msClipboard.get());
c = clipWaveIter.Last();
Maybe<WaveTrack::Locker> locker;
if (AudacityProject::msClipProject != &project && c)
// Cause duplication of block files on disk, when copy is
// between projects
locker.create(static_cast<const WaveTrack*>(c));
while (n) {
if (n->GetSelected() && n->GetKind()==Track::Wave) {
if (c) {