From 4810897b747e41d52718b97b2a90636cad503a80 Mon Sep 17 00:00:00 2001 From: James Crook Date: Fri, 25 Sep 2020 10:37:01 +0100 Subject: [PATCH] Add Help Button. Two more disk full errors were missing help-link buttons. --- src/ProjectFileManager.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ProjectFileManager.cpp b/src/ProjectFileManager.cpp index 4ee730457..8f4d806b8 100644 --- a/src/ProjectFileManager.cpp +++ b/src/ProjectFileManager.cpp @@ -291,13 +291,13 @@ bool ProjectFileManager::DoSave(const FilePath & fileName, const bool fromSaveAs if ( !wxRenameFile(fileName, safetyFileName) ) { - AudacityMessageBox( - XO( -"Audacity failed to write file %s.\nPerhaps disk is full or not writable.") - .Format(safetyFileName), + ShowErrorDialog( + &window, XO("Error Writing to File"), - wxICON_STOP, - &window); + XO("Audacity failed to write file %s.\nPerhaps disk is full or not writable.") + .Format(safetyFileName), + "Error:_Disk_full_or_not_writable" + ); return false; } } @@ -305,13 +305,13 @@ bool ProjectFileManager::DoSave(const FilePath & fileName, const bool fromSaveAs bool success = projectFileIO.SaveProject(fileName, mLastSavedTracks); if (!success) { - AudacityMessageBox( - XO( -"Could not save project. Perhaps %s \nis not writable or the disk is full.") - .Format(fileName), + ShowErrorDialog( + &window, XO("Error Saving Project"), - wxICON_ERROR, - &window); + XO("Could not save project. Perhaps %s \nis not writable or the disk is full.") + .Format(fileName), + "Error:_Disk_full_or_not_writable" + ); if (fromSaveAs) {