From 5df957862db0d55ad65e54f5cb1a0c119bf6b102 Mon Sep 17 00:00:00 2001
From: David Dormagen <czapper@gmx.de>
Date: Mon, 25 Jan 2021 10:31:42 +0100
Subject: [PATCH] annotations: correctly mark as 'dirty' when updating
 begin/end frame

Otherwise, annotations would not be saved when closing the video if the only action since last save was e.g. setting the end timestamp.
---
 Src/Model/Annotations.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Src/Model/Annotations.cpp b/Src/Model/Annotations.cpp
index 7bd91b62..c43209bf 100644
--- a/Src/Model/Annotations.cpp
+++ b/Src/Model/Annotations.cpp
@@ -434,6 +434,7 @@ bool Annotations::updateSelectionStartFrame()
 	selectedAnnotation->startFrame = getCurrentFrame();
 	if (selectedAnnotation->endFrame < selectedAnnotation->startFrame)
 		selectedAnnotation->endFrame = selectedAnnotation->startFrame;
+	dirty = true;	
 	return true;
 }
 
@@ -444,6 +445,7 @@ bool Annotations::updateSelectionEndFrame()
 	selectedAnnotation->endFrame = getCurrentFrame();
 	if (selectedAnnotation->startFrame > selectedAnnotation->endFrame)
 		selectedAnnotation->startFrame = selectedAnnotation->endFrame;
+	dirty = true;	
 	return true;
 }
 
-- 
GitLab