diff main/OSCHandler.cpp @ 248:842745edded8

* juggle some files around in order to free audioio, base, and system libraries from dependency on QtGui
author Chris Cannam
date Wed, 12 Mar 2008 17:42:56 +0000
parents 99e0dfd3ea75
children 9d772bee2095
line wrap: on
line diff
--- a/main/OSCHandler.cpp	Tue Mar 11 09:23:48 2008 +0000
+++ b/main/OSCHandler.cpp	Wed Mar 12 17:42:56 2008 +0000
@@ -21,7 +21,7 @@
 #include "view/Pane.h"
 #include "view/PaneStack.h"
 #include "data/model/WaveFileModel.h"
-#include "base/CommandHistory.h"
+#include "widgets/CommandHistory.h"
 #include "audioio/AudioCallbackPlaySource.h"
 #include "audioio/AudioCallbackPlayTarget.h"
 #include "framework/Document.h"
@@ -351,7 +351,9 @@
             if (container) {
                 QString nameString = message.getArg(1).toString();
                 QString valueString = message.getArg(2).toString();
-                container->setPropertyWithCommand(nameString, valueString);
+                Command *c = container->getSetPropertyCommand
+                    (nameString, valueString);
+                if (c) CommandHistory::getInstance()->addCommand(c, true, true);
             }
         }