Fix concurrency crash when layout has clip and project monitor side by side

parent 36e115d7
......@@ -103,6 +103,7 @@ void MonitorManager::setConsumerProperty(const QString &name, const QString &val
bool MonitorManager::activateMonitor(Kdenlive::MonitorId name, bool forceRefresh)
QMutexLocker locker(&m_refreshMutex);
if (m_clipMonitor == NULL || m_projectMonitor == NULL)
return false;
if (m_activeMonitor && m_activeMonitor->id() == name) {
......@@ -110,6 +110,8 @@ private slots:
void slotMuteCurrentMonitor(bool active);
/** @brief Make sure 2 monitors cannot be activated simultaneously*/
QMutex m_refreshMutex;
/** @brief Sets up all the actions and attaches them to the collection of MainWindow. */
void setupActions();
KdenliveDoc *m_document;
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