From 5b67058dd799c6712be8f4d91c55993812a4f3c4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 17 Jan 2025 20:56:49 +0100 Subject: Allow pasting of another timecode format. --- src/wx/timecode.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/wx/timecode.cc') diff --git a/src/wx/timecode.cc b/src/wx/timecode.cc index 6538bf986..e81b10db1 100644 --- a/src/wx/timecode.cc +++ b/src/wx/timecode.cc @@ -152,6 +152,12 @@ TimecodeBase::paste(wxClipboardTextEvent& ev) _seconds->SetValue(contents.Mid(4, 2)); _frames->SetValue(contents.Mid(6, 2)); return; + } else if (contents.Length() == 11 && contents[2] == ':' && contents[5] == ':' && contents[8] == ':') { + _hours->SetValue(contents.Mid(0, 2)); + _minutes->SetValue(contents.Mid(3, 2)); + _seconds->SetValue(contents.Mid(6, 2)); + _frames->SetValue(contents.Mid(9, 2)); + return; } } -- cgit v1.2.3