Commit bca65171 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Immediatly pause when switching between play forwards/backwards

parent 0855e9e0
......@@ -1147,6 +1147,7 @@ void Monitor::slotRewind(double speed)
if (qFuzzyIsNull(speed)) {
double currentspeed = m_glMonitor->playSpeed();
if (currentspeed > -1) {
m_glMonitor->purgeCache();
speed = -1;
} else {
speed = currentspeed * 1.5;
......@@ -1162,6 +1163,7 @@ void Monitor::slotForward(double speed)
if (qFuzzyIsNull(speed)) {
double currentspeed = m_glMonitor->playSpeed();
if (currentspeed < 1) {
m_glMonitor->purgeCache();
speed = 1;
} else {
speed = currentspeed * 1.2;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment