1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-19 09:17:54 +01:00

Bug 330 (P2) - Fix an issue where multiple projects would cause the warning dialogs to pop up above the wrong project.

I refactored the code into AudacityApp with a new timer.  This is provisional pending discussion - if it is decided that it should go somewhere else I will move it.
This commit is contained in:
mchinen
2011-03-29 23:39:00 +00:00
parent c226ae9265
commit 91d8f132a6
12 changed files with 167 additions and 113 deletions

View File

@@ -910,6 +910,11 @@ BlockFile *DirManager::NewODDecodeBlockFile(
return newBlockFile;
}
bool DirManager::ContainsBlockFile(BlockFile *b) {
// check what the hash returns in case the blockfile is from a different project
return b ? mBlockFileHash[b->GetFileName().GetName()] == b : NULL;
}
// Adds one to the reference count of the block file,
// UNLESS it is "locked", then it makes a new copy of
// the BlockFile.