diff framework/Document.cpp @ 160:64b09e5bda21

* rtmidi & activity updates
author Chris Cannam
date Tue, 24 Feb 2009 17:25:55 +0000
parents 06fc6fc21739
children 0bd09fb9e584
line wrap: on
line diff
--- a/framework/Document.cpp	Tue Feb 24 16:44:43 2009 +0000
+++ b/framework/Document.cpp	Tue Feb 24 17:25:55 2009 +0000
@@ -263,8 +263,13 @@
 {
     Model *oldMainModel = m_mainModel;
     m_mainModel = model;
-
+    
     emit modelAdded(m_mainModel);
+    if (model) {
+        emit activity(tr("Set main model to %1").arg(model->objectName()));
+    } else {
+        emit activity(tr("Clear main model"));
+    }
 
     std::vector<Layer *> obsoleteLayers;
     std::set<QString> failedTransformers;