Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
60678be0
Commit
60678be0
authored
Sep 30, 2021
by
Jean-Baptiste Mardelle
Browse files
Ensure we don't end up with a dead connection activating a monitor
parent
76291090
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/monitor.cpp
View file @
60678be0
...
...
@@ -1479,6 +1479,7 @@ void Monitor::refreshMonitor(bool directUpdate)
if
(
isActive
())
{
m_glMonitor
->
refresh
();
// 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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment