1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 23:33:49 +01:00

ProjectWindow does not depend on ProjectFileIO

This commit is contained in:
Paul Licameli
2019-06-05 07:23:08 -04:00
parent 2f9322e7f7
commit 236b188d6b
5 changed files with 56 additions and 55 deletions

View File

@@ -700,7 +700,7 @@ void ProjectManager::OnCloseWindow(wxCloseEvent & event)
// project is now empty.
if (event.CanVeto() && (settings.EmptyCanBeDirty() || bHasTracks)) {
if ( UndoManager::Get( project ).UnsavedChanges() ) {
TitleRestorer Restorer( &window );// RAII
TitleRestorer Restorer( window, project );// RAII
/* i18n-hint: The first %s numbers the project, the second %s is the project name.*/
wxString Title = wxString::Format(_("%sSave changes to %s?"), Restorer.sProjNumber, Restorer.sProjName);
wxString Message = _("Save project before closing?");