comparison view/ViewManager.cpp @ 968:4d54882bbf73

Avoid going pop when setting play head to before time 0
author Chris Cannam
date Thu, 21 May 2015 15:31:12 +0100
parents b48db6f1a7d2
children f2c63ec85901
comparison
equal deleted inserted replaced
967:faa8532e4f02 968:4d54882bbf73
164 } 164 }
165 165
166 void 166 void
167 ViewManager::setPlaybackFrame(sv_frame_t f) 167 ViewManager::setPlaybackFrame(sv_frame_t f)
168 { 168 {
169 if (f < 0) f = 0;
169 if (m_playbackFrame != f) { 170 if (m_playbackFrame != f) {
170 m_playbackFrame = f; 171 m_playbackFrame = f;
171 emit playbackFrameChanged(f); 172 emit playbackFrameChanged(f);
172 if (m_playSource && m_playSource->isPlaying()) { 173 if (m_playSource && m_playSource->isPlaying()) {
173 m_playSource->play(f); 174 m_playSource->play(f);