# HG changeset patch # User Chris Cannam # Date 1237477787 0 # Node ID fb8b1b2f7dea6b424622e9014a09197e04e95a5f # Parent e60e6fccfe4e385c2ac26d4d7bd847eb25281ebe * Fix crash when opening SV file when the audio data file can't be found and the user doesn't locate it diff -r e60e6fccfe4e -r fb8b1b2f7dea view/ViewManager.cpp --- 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(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) {