comparison 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
comparison
equal deleted inserted replaced
526:e60e6fccfe4e 527:fb8b1b2f7dea
508 } else { 508 } else {
509 if (v) emit viewCentreFrameChanged(v, f); 509 if (v) emit viewCentreFrameChanged(v, f);
510 } 510 }
511 511
512 if (!dynamic_cast<Overview *>(v) || (mode != PlaybackIgnore)) { 512 if (!dynamic_cast<Overview *>(v) || (mode != PlaybackIgnore)) {
513 emit activity(tr("Scroll to %1") 513 if (m_mainModelSampleRate != 0) {
514 .arg(RealTime::frame2RealTime 514 emit activity(tr("Scroll to %1")
515 (f, m_mainModelSampleRate).toText().c_str())); 515 .arg(RealTime::frame2RealTime
516 (f, m_mainModelSampleRate).toText().c_str()));
517 }
516 } 518 }
517 519
518 if (mode == PlaybackIgnore) { 520 if (mode == PlaybackIgnore) {
519 return; 521 return;
520 } 522 }