changeset 527:fb8b1b2f7dea

* Fix crash when opening SV file when the audio data file can't be found and the user doesn't locate it
author Chris Cannam
date Thu, 19 Mar 2009 15:49:47 +0000
parents e60e6fccfe4e
children 44f391ec2172
files view/ViewManager.cpp
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/view/ViewManager.cpp	Thu Mar 19 15:48:19 2009 +0000
+++ b/view/ViewManager.cpp	Thu Mar 19 15:49:47 2009 +0000
@@ -510,9 +510,11 @@
     }
 
     if (!dynamic_cast<Overview *>(v) || (mode != PlaybackIgnore)) {
-        emit activity(tr("Scroll to %1")
-                      .arg(RealTime::frame2RealTime
-                           (f, m_mainModelSampleRate).toText().c_str()));
+        if (m_mainModelSampleRate != 0) {
+            emit activity(tr("Scroll to %1")
+                          .arg(RealTime::frame2RealTime
+                               (f, m_mainModelSampleRate).toText().c_str()));
+        }
     }
 
     if (mode == PlaybackIgnore) {