Commit 60678be0 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Ensure we don't end up with a dead connection activating a monitor

parent 76291090
......@@ -1479,6 +1479,7 @@ void Monitor::refreshMonitor(bool directUpdate)
if (isActive()) {
// Monitor was not active, so we activate it, refresh and activate the other monitor once done
QObject::disconnect( m_switchConnection );
m_switchConnection = connect(m_glMonitor, &GLWidget::frameDisplayed, this, [=]() {
m_monitorManager->activateMonitor(m_id == Kdenlive::ClipMonitor ? Kdenlive::ProjectMonitor : Kdenlive::ClipMonitor);
QObject::disconnect( m_switchConnection );
Supports Markdown
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