mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 08:39:46 +02:00
Tweak error message
Several users have stated confusion about the old message, thinking that it meant 'changes to the imported file', whereas it actually refers to the 'project'. Also fix a couple of compiler warnings.
This commit is contained in:
parent
285f6dc788
commit
229781cc12
@ -2020,9 +2020,8 @@ void AudacityProject::HandleResize()
|
||||
// How many projects that do not have a name yet?
|
||||
int AudacityProject::CountUnnamed()
|
||||
{
|
||||
int i;
|
||||
int j = 0;
|
||||
for(i=0;i<gAudacityProjects.size();i++){
|
||||
for ( size_t i = 0; i < gAudacityProjects.size(); i++) {
|
||||
if ( gAudacityProjects[i] )
|
||||
if ( gAudacityProjects[i]->GetName().IsEmpty() )
|
||||
j++;
|
||||
@ -2032,8 +2031,7 @@ int AudacityProject::CountUnnamed()
|
||||
|
||||
void AudacityProject::RefreshAllTitles(bool bShowProjectNumbers )
|
||||
{
|
||||
int i;
|
||||
for(i=0;i<gAudacityProjects.size();i++){
|
||||
for ( size_t i = 0; i < gAudacityProjects.size(); i++) {
|
||||
if ( gAudacityProjects[i] ) {
|
||||
if ( !gAudacityProjects[i]->mIconized ) {
|
||||
AudacityProject * p;
|
||||
@ -2458,7 +2456,7 @@ void AudacityProject::OnCloseWindow(wxCloseEvent & event)
|
||||
TitleRestorer Restorer( this );// 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.c_str(), Restorer.sProjName.c_str());
|
||||
wxString Message = _("Save changes before closing?");
|
||||
wxString Message = _("Save project before closing?");
|
||||
if( !bHasTracks )
|
||||
{
|
||||
Message += _("\nIf saved, the project will have no tracks.\n\nTo save any previously open tracks:\nCancel, Edit > Undo until all tracks\nare open, then File > Save Project.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user