Update of /cvsroot/audacity/audacity-src/src/commands
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv7464/src/commands

Modified Files:
        CommandManager.cpp 
Log Message:
-Progressed Checklist.

Index: CommandManager.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/commands/CommandManager.cpp,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- CommandManager.cpp  24 Jul 2007 21:59:43 -0000      1.43
+++ CommandManager.cpp  16 Sep 2007 13:46:00 -0000      1.44
@@ -743,8 +743,16 @@
 
    wxUint32 combinedMask = (mask & entry->mask);
    if (combinedMask) {
-      bool allowed = ((flags & combinedMask) ==
-                      (entry->flags & combinedMask));
+
+      AudacityProject * proj;
+      proj = GetActiveProject();
+      wxASSERT( proj );
+      if( !proj )
+         return false;     
+
+      // NB: The call may have the side effect of changing flags.
+      bool allowed = proj->TryToMakeActionAllowed( flags, entry->flags, 
combinedMask );
+
       if (!allowed)
       {
          TellUserWhyDisallowed( 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to