Fix incorrect tracks count affecting audio stream dialog

parent e756724e
Pipeline #20768 passed with stage
in 9 minutes and 12 seconds
...@@ -150,10 +150,6 @@ Rectangle { ...@@ -150,10 +150,6 @@ Rectangle {
return Logic.getTrackYFromMltIndex(a_track) return Logic.getTrackYFromMltIndex(a_track)
} }
function getTracksCount() {
return Logic.getTracksList()
}
function getMousePos() { function getMousePos() {
if (dragProxy.draggedItem > -1 && dragProxy.masterObject) { if (dragProxy.draggedItem > -1 && dragProxy.masterObject) {
return (dragProxy.masterObject.x + dragProxy.masterObject.mouseXPos) / timeline.scaleFactor return (dragProxy.masterObject.x + dragProxy.masterObject.mouseXPos) / timeline.scaleFactor
......
...@@ -1448,10 +1448,7 @@ void TimelineController::refreshItem(int id) ...@@ -1448,10 +1448,7 @@ void TimelineController::refreshItem(int id)
QPair<int, int> TimelineController::getTracksCount() const QPair<int, int> TimelineController::getTracksCount() const
{ {
QVariant returnedValue; return m_model->getAVtracksCount();
QMetaObject::invokeMethod(m_root, "getTracksCount", Q_RETURN_ARG(QVariant, returnedValue));
QVariantList tracks = returnedValue.toList();
return {tracks.at(0).toInt(), tracks.at(1).toInt()};
} }
QStringList TimelineController::extractCompositionLumas() const QStringList TimelineController::extractCompositionLumas() const
......
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