Fix compile warning

parent e736db28
......@@ -1286,13 +1286,13 @@ bool TimelineController::requestSpacerEndOperation(int clipId, int startPosition
void TimelineController::seekCurrentClip(bool seekToEnd)
{
const auto selection = m_model->getCurrentSelection();
for (int cid : selection) {
if (!selection.empty()) {
int cid = *selection.begin();
int start = m_model->getItemPosition(cid);
if (seekToEnd) {
start += m_model->getItemPlaytime(cid);
}
setPosition(start);
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment