]> git.sesse.net Git - kdenlive/blobdiff - src/editkeyframecommand.cpp
Apply patch from P. Fleury to improve jog shuttle speed handling.
[kdenlive] / src / editkeyframecommand.cpp
index fed063e1fdd4f386e8fa331697eaeb98ade1f703..29c341ca24e47991373dbe0f55cd9c5ef2dd760a 100644 (file)
 #include <KLocale>
 
 EditKeyFrameCommand::EditKeyFrameCommand(CustomTrackView *view, const int track, GenTime pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt) :
+        QUndoCommand(),
         m_view(view),
-        m_track(track),
-        m_pos(pos),
-        m_index(effectIndex),
         m_oldkfr(oldkeyframes),
         m_newkfr(newkeyframes),
+        m_track(track),
+        m_index(effectIndex),
+        m_pos(pos),
         m_doIt(doIt)
 {
     int prev = m_oldkfr.split(';', QString::SkipEmptyParts).count();
@@ -43,6 +44,7 @@ EditKeyFrameCommand::EditKeyFrameCommand(CustomTrackView *view, const int track,
 void EditKeyFrameCommand::undo()
 {
     m_view->editKeyFrame(m_pos, m_track, m_index, m_oldkfr);
+    m_doIt = true;
 }
 // virtual
 void EditKeyFrameCommand::redo()