mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-17 16:50:26 +02:00
Remove obsolete mentions of DirManager in comments
This commit is contained in:
parent
bd6536f3c4
commit
061208c5cf
@ -1263,7 +1263,6 @@ bool AudacityApp::OnInit()
|
|||||||
// AColor depends on theTheme.
|
// AColor depends on theTheme.
|
||||||
AColor::Init();
|
AColor::Init();
|
||||||
|
|
||||||
// Init DirManager, which initializes the temp directory
|
|
||||||
// If this fails, we must exit the program.
|
// If this fails, we must exit the program.
|
||||||
if (!InitTempDir()) {
|
if (!InitTempDir()) {
|
||||||
FinishPreferences();
|
FinishPreferences();
|
||||||
|
@ -706,7 +706,6 @@ void ProjectManager::OnCloseWindow(wxCloseEvent & event)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// DanH: If we're definitely about to quit, clear the clipboard.
|
// DanH: If we're definitely about to quit, clear the clipboard.
|
||||||
// Doing this after Deref'ing the DirManager causes problems.
|
|
||||||
auto &clipboard = Clipboard::Get();
|
auto &clipboard = Clipboard::Get();
|
||||||
if ((AllProjects{}.size() == 1) &&
|
if ((AllProjects{}.size() == 1) &&
|
||||||
(quitOnClose || AllProjects::Closing()))
|
(quitOnClose || AllProjects::Closing()))
|
||||||
@ -744,11 +743,11 @@ void ProjectManager::OnCloseWindow(wxCloseEvent & event)
|
|||||||
{
|
{
|
||||||
AutoCommitTransaction trans(projectFileIO, "Shutdown");
|
AutoCommitTransaction trans(projectFileIO, "Shutdown");
|
||||||
|
|
||||||
// This must be done before the following Deref() since it holds
|
// This can reduce reference counts of sample blocks in the project's
|
||||||
// references to the DirManager.
|
// tracks.
|
||||||
UndoManager::Get( project ).ClearStates();
|
UndoManager::Get( project ).ClearStates();
|
||||||
|
|
||||||
// Delete all the tracks to free up memory and DirManager references.
|
// Delete all the tracks to free up memory
|
||||||
tracks.Clear();
|
tracks.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -922,7 +921,6 @@ void ProjectManager::ResetProjectToEmpty() {
|
|||||||
SelectUtilities::DoSelectAll( project );
|
SelectUtilities::DoSelectAll( project );
|
||||||
TrackUtilities::DoRemoveTracks( project );
|
TrackUtilities::DoRemoveTracks( project );
|
||||||
|
|
||||||
// A new DirManager.
|
|
||||||
TrackFactory::Reset( project );
|
TrackFactory::Reset( project );
|
||||||
|
|
||||||
projectFileManager.Reset();
|
projectFileManager.Reset();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user