mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 00:29:41 +02:00
Bug 1622 - Cryptic error message when existing project cannot be saved
This commit is contained in:
parent
9a3bd94459
commit
72f36f8a82
@ -352,14 +352,15 @@ bool ProjectFileManager::DoSave (const bool fromSaveAs,
|
||||
safetyFileName = fileName + wxT(".bak");
|
||||
#endif
|
||||
|
||||
bool bOK=true;
|
||||
if (wxFileExists(safetyFileName))
|
||||
wxRemoveFile(safetyFileName);
|
||||
bOK = wxRemoveFile(safetyFileName);
|
||||
|
||||
if ( !wxRenameFile(fileName, safetyFileName) ) {
|
||||
AudacityMessageBox(
|
||||
wxString::Format(
|
||||
_("Could not create safety file: %s"), safetyFileName ),
|
||||
_("Error"), wxICON_STOP, &window);
|
||||
_("Audacity failed to write file %s.\nPerhaps disk is full or not writable."), safetyFileName ),
|
||||
_("Error Writing to File"), wxICON_STOP, &window);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user