Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv32011/src

Modified Files:
        Project.cpp 
Log Message:
Fix non-functional warning when saving empty projects.

Index: Project.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v
retrieving revision 1.424
retrieving revision 1.425
diff -u -d -r1.424 -r1.425
--- Project.cpp 30 May 2009 19:54:12 -0000      1.424
+++ Project.cpp 30 May 2009 20:35:39 -0000      1.425
@@ -2678,7 +2678,7 @@
       bool bHasTracks = (iter.First() != NULL);
       if (!bHasTracks)
       {
-         if (mUndoManager.UnsavedChanges()) {
+         if (mUndoManager.UnsavedChanges() && mEmptyCanBeDirty) {
             int result = wxMessageBox(_("Your project is now empty.\nIf saved, 
the project will have no tracks.\n\nTo save any previously open tracks:\nClick 
'No', Edit > Undo until all tracks\nare open, then File > Save Project.\n\nSave 
anyway?"),
                                       _("Warning empty project"),
                                       wxYES_NO | wxICON_QUESTION, this);


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to