]> git.sesse.net Git - kdenlive/blobdiff - src/commands/editguidecommand.cpp
Use const'ref.
[kdenlive] / src / commands / editguidecommand.cpp
index 20933a3c8e760fe06e0b7b04b4e8cdd7cd765ae5..30398da8e7c32fa7d5a83dcee6798963c4c02243 100644 (file)
@@ -30,9 +30,12 @@ EditGuideCommand::EditGuideCommand(CustomTrackView *view, const GenTime oldPos,
         m_pos(pos),
         m_doIt(doIt)
 {
-    if (m_oldcomment.isEmpty()) setText(i18n("Add guide"));
+    if (m_oldcomment.isEmpty()) {
+       setText(i18n("Add guide"));
+       m_oldPos = GenTime(-1);
+    }
     else if (m_oldPos == m_pos) setText(i18n("Edit guide"));
-    else if (m_pos <= GenTime()) setText(i18n("Delete guide"));
+    else if (m_pos < GenTime() && m_comment.isEmpty()) setText(i18n("Delete guide"));
     else setText(i18n("Move guide"));
 }