traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/core Song.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/core Song.cpp
Date: Wed, 04 Apr 2007 09:19:18 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/04/04 09:19:18

Modified files:
        src/core       : Song.cpp 

Log message:
        Song::go returns the Command object to InputEngine now, instead of 
calling Command::process_command() directly 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/Song.cpp?cvsroot=traverso&r1=1.75&r2=1.76

Patches:
Index: Song.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/Song.cpp,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -b -r1.75 -r1.76
--- Song.cpp    4 Apr 2007 02:24:38 -0000       1.75
+++ Song.cpp    4 Apr 2007 09:19:18 -0000       1.76
@@ -164,7 +164,7 @@
 {
        PENTER;
        QDomNode propertiesNode = node.firstChildElement("Properties");
-       m_id = node.toElement().attribute( "id", "" ).toLongLong();
+       m_id = node.toElement().attribute("id", "0").toLongLong();
        if (m_id == 0) {
                m_id = create_id();
        }
@@ -575,13 +575,15 @@
 {
 //     printf("Song-%d::go transport is %d\n", m_id, transport);
        
+       CommandGroup* group = 0;
+       
        if (transport) {
                stopTransport = true;
        } else {
                emit transferStarted();
                
                if (any_track_armed()) {
-                       CommandGroup* group = new CommandGroup(this, "");
+                       group = new CommandGroup(this, "");
                        int clipcount = 0;
                        foreach(Track* track, m_tracks) {
                                if (track->armed()) {
@@ -593,8 +595,6 @@
                                }
                        }
                        group->setText(tr("Recording to %n Clip(s)", "", 
clipcount));
-                       
-                       Command::process_command(group);
                }
                
                transport = true;
@@ -602,7 +602,7 @@
                realtimepath = true;
        }
        
-       return 0;
+       return group;
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]