From 764c7bb088baf799bc765d013d575485e6e5d328 Mon Sep 17 00:00:00 2001 From: Thomas Wilshaw Date: Fri, 7 Jan 2022 01:20:38 +0000 Subject: [PATCH] Add tr to string and fix variable name --- app/task/project/loadotio/loadotio.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/task/project/loadotio/loadotio.cpp b/app/task/project/loadotio/loadotio.cpp index bab14d906..8d9e14f2e 100644 --- a/app/task/project/loadotio/loadotio.cpp +++ b/app/task/project/loadotio/loadotio.cpp @@ -97,16 +97,16 @@ bool LoadOTIOTask::Run() // Generate a list of sequences with the same names as the timelines. // Assumes each timeline has a unique name. - int unnamedSequenceCount = 1; + int unnamed_sequence_count = 0; foreach (auto timeline, timelines) { Sequence* sequence = new Sequence(); if (!timeline->name().empty()) { sequence->SetLabel(QString::fromStdString(timeline->name())); } else { // If the otio timeline does not provide a name, create a default one here - QString label = "Sequence " + QString::number(unnamedSequenceCount); + unnamed_sequence_count++; + QString label = tr("Sequence") + QString(" ") + QString::number(unnamed_sequence_count); sequence->SetLabel(QString::fromStdString(label.toStdString())); - unnamedSequenceCount++; } // Set default params incase they aren't edited. sequence->set_default_parameters();