From: Till Theato Date: Sat, 28 Aug 2010 19:24:08 +0000 (+0000) Subject: Fix monitor scene not showing up when switching between effects in effect stack X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=76a91c652a0f24ac0962b43aa8e411dcaaca723f;p=kdenlive Fix monitor scene not showing up when switching between effects in effect stack svn path=/trunk/kdenlive/; revision=4774 --- diff --git a/src/effectstackedit.cpp b/src/effectstackedit.cpp index d5270cab..621275c8 100644 --- a/src/effectstackedit.cpp +++ b/src/effectstackedit.cpp @@ -260,6 +260,8 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int pos, int in, in } else if (type == "geometry") { if (KdenliveSettings::on_monitor_effects()) { GeometryWidget *geometry = new GeometryWidget(m_monitor, m_timecode, pos, isEffect, this); + // connect this before setupParam to make sure the monitor scene shows up at startup + connect(geometry, SIGNAL(checkMonitorPosition(int)), this, SIGNAL(checkMonitorPosition(int))); if (minFrame == maxFrame) geometry->setupParam(pa, m_in, m_out); else @@ -267,7 +269,6 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int pos, int in, in m_vbox->addWidget(geometry); m_valueItems[paramName+"geometry"] = geometry; connect(geometry, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters())); - connect(geometry, SIGNAL(checkMonitorPosition(int)), this, SIGNAL(checkMonitorPosition(int))); connect(geometry, SIGNAL(seekToPos(int)), this, SIGNAL(seekTimeline(int))); connect(this, SIGNAL(syncEffectsPos(int)), geometry, SLOT(slotSyncPosition(int))); } else { diff --git a/src/effectstackview.cpp b/src/effectstackview.cpp index 257a5468..ae90b797 100644 --- a/src/effectstackview.cpp +++ b/src/effectstackview.cpp @@ -444,7 +444,7 @@ void EffectStackView::slotCheckMonitorPosition(int renderPos) void EffectStackView::slotRenderPos(int pos) { - if (m_clipref && m_effectedit) + if (m_clipref && m_effectedit && !m_trackMode) m_effectedit->slotSyncEffectsPos(pos - m_clipref->startPos().frames(KdenliveSettings::project_fps())); } diff --git a/src/geometrywidget.cpp b/src/geometrywidget.cpp index fab0aeea..c10389dc 100644 --- a/src/geometrywidget.cpp +++ b/src/geometrywidget.cpp @@ -220,7 +220,6 @@ void GeometryWidget::setupParam(const QDomElement elem, int minframe, int maxfra m_scene->addItem(m_rect); slotPositionChanged(0, false); - slotUpdateProperties(); slotCheckMonitorPosition(m_monitor->render->seekFramePosition()); }