Skip to content

Commit 6d74aa3

Browse files
committed
fix: clip time not showing CasparCG/server#1521
1 parent 028261f commit 6d74aa3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Widgets/Rundown/RundownMovieWidget.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,10 @@ void RundownMovieWidget::nameSubscriptionReceived(const QString& predicate, cons
10631063
Q_UNUSED(predicate);
10641064

10651065
QString name = arguments.at(0).toString();
1066-
name.remove(name.lastIndexOf('.'), name.length()); // Remove extension.
1066+
1067+
int extIndex = name.lastIndexOf('.');
1068+
if (extIndex != -1)
1069+
name.remove(extIndex, name.length()); // Remove extension.
10671070

10681071
if (this->model.getName().toLower() != name.toLower())
10691072
return; // Wrong file.

0 commit comments

Comments
 (0)