Home
Phabricator
Search
Log In
Differential
D16026
Diff 43077
src/timeline/customtrackview.cpp
Changeset View
I don't think this will work for translations. It would be better to define a boolean, like: isVideoTrack, set to true if m_timeline->getTrackInfo(ix).type == VideoTrack.
Then in the while loop:
while (existingTrackNames.contains(proposedName)) {
proposedName = isVideoTrack ? i18n("Video %1", ++i) : i18n("Audio %1", ++i);
}