diff framework/MainWindowBase.cpp @ 160:64b09e5bda21

* rtmidi & activity updates
author Chris Cannam
date Tue, 24 Feb 2009 17:25:55 +0000
parents ae56bf90cdf9
children f90e277d2876
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Tue Feb 24 16:44:43 2009 +0000
+++ b/framework/MainWindowBase.cpp	Tue Feb 24 17:25:55 2009 +0000
@@ -713,8 +713,11 @@
 void
 MainWindowBase::insertInstant()
 {
-    int frame = m_viewManager->getPlaybackFrame();
-    insertInstantAt(frame);
+    if (m_playSource && m_playSource->isPlaying()) {
+        insertInstantAt(m_playSource->getCurrentPlayingFrame());
+    } else {
+        insertInstantAt(m_viewManager->getPlaybackFrame());
+    }
 }
 
 void
@@ -1714,6 +1717,8 @@
             this, SLOT(modelRegenerationWarning(QString, QString, QString)));
     connect(m_document, SIGNAL(alignmentFailed(QString, QString)),
             this, SLOT(alignmentFailed(QString, QString)));
+
+    emit replacedDocument();
 }
 
 bool