1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Bug 2235 - Timer Record does not shut down Computer if Automatic Save Project is not selected

This commit is contained in:
James Crook
2020-03-06 20:16:43 +00:00
parent f1b6843b9a
commit c60ec1a6e1
3 changed files with 10 additions and 1 deletions

View File

@@ -105,6 +105,7 @@ BEGIN_EVENT_TABLE( ProjectManager, wxEvtHandler )
END_EVENT_TABLE()
bool ProjectManager::sbWindowRectAlreadySaved = false;
bool ProjectManager::sbSkipPromptingForSave = false;
void ProjectManager::SaveWindowSize()
{
@@ -652,7 +653,9 @@ void ProjectManager::OnCloseWindow(wxCloseEvent & event)
// We may not bother to prompt the user to save, if the
// project is now empty.
if (event.CanVeto() && (settings.EmptyCanBeDirty() || bHasTracks)) {
if (!sbSkipPromptingForSave
&& event.CanVeto()
&& (settings.EmptyCanBeDirty() || bHasTracks)) {
if ( UndoManager::Get( project ).UnsavedChanges() ) {
TitleRestorer Restorer( window, project );// RAII
/* i18n-hint: The first %s numbers the project, the second %s is the project name.*/