Mercurial > hg > svgui
diff view/ViewManager.cpp @ 503:133b378d8efe
* more activity updates
author | Chris Cannam |
---|---|
date | Tue, 24 Feb 2009 16:44:43 +0000 |
parents | 73a58a4dfebd |
children | fb8b1b2f7dea |
line wrap: on
line diff
--- a/view/ViewManager.cpp Tue Feb 24 14:01:42 2009 +0000 +++ b/view/ViewManager.cpp Tue Feb 24 16:44:43 2009 +0000 @@ -19,6 +19,7 @@ #include "data/model/Model.h" #include "widgets/CommandHistory.h" #include "View.h" +#include "Overview.h" #include <QSettings> #include <QApplication> @@ -508,9 +509,11 @@ if (v) emit viewCentreFrameChanged(v, f); } - emit activity(tr("Scroll view to %1") - .arg(RealTime::frame2RealTime - (f, m_mainModelSampleRate).toText().c_str())); + if (!dynamic_cast<Overview *>(v) || (mode != PlaybackIgnore)) { + emit activity(tr("Scroll to %1") + .arg(RealTime::frame2RealTime + (f, m_mainModelSampleRate).toText().c_str())); + } if (mode == PlaybackIgnore) { return; @@ -566,7 +569,10 @@ #endif emit viewZoomLevelChanged(v, z, locked); - emit activity(tr("Zoom to %n sample(s) per pixel", "", z)); + + if (!dynamic_cast<Overview *>(v)) { + emit activity(tr("Zoom to %n sample(s) per pixel", "", z)); + } } void