]> git.sesse.net Git - kdenlive/blobdiff - src/addtrackcommand.cpp
Rewrite generation of timeline thumbnails when zooming at frame level, using separate...
[kdenlive] / src / addtrackcommand.cpp
index 89bf7deb7cf5550c01c3a1259734e9a311ec32b5..fa8b5692ea5f44f2a9cf2e298c2622374ecba366 100644 (file)
 
 #include <KLocale>
 
-AddTrackCommand::AddTrackCommand(CustomTrackView *view, int ix, TrackInfo info, bool addTrack, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_ix(ix), m_info(info), m_addTrack(addTrack)
+AddTrackCommand::AddTrackCommand(CustomTrackView *view, int ix, TrackInfo info, bool addTrack, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_ix(ix),
+        m_addTrack(addTrack),
+        m_info(info)
 {
     if (addTrack) setText(i18n("Add track"));
     else setText(i18n("Delete track"));
@@ -41,7 +46,7 @@ void AddTrackCommand::undo()
 void AddTrackCommand::redo()
 {
     kDebug() << "----  redoing action";
-        if (m_addTrack) m_view->addTrack(m_info, m_ix);
-        else m_view->removeTrack(m_ix);
+    if (m_addTrack) m_view->addTrack(m_info, m_ix);
+    else m_view->removeTrack(m_ix);
 }