Mercurial > hg > svgui
diff view/ViewManager.cpp @ 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 | 133b378d8efe |
children | 1fe7951a61e8 |
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) {