Fix streams menu position

parent 95752259
Pipeline #20743 passed with stage
in 9 minutes and 28 seconds
......@@ -279,7 +279,7 @@ void TimelineWidget::showTargetMenu(int tid)
}
QVariant returnedValue;
QMetaObject::invokeMethod(rootObject(), "getActiveTrackStreamPos", Q_RETURN_ARG(QVariant, returnedValue));
m_clickPos = QPoint(5, mapToGlobal(QPoint(0, y())).y() + returnedValue.toInt());
m_clickPos = mapToGlobal(QPoint(5, y())) + QPoint(0, returnedValue.toInt());
}
QMap<int, QString> possibleTargets = m_proxy->getCurrentTargets(tid, currentTargetStream);
m_targetsMenu->clear();
......
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