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

Fix crash changing clip monitor bg color when no clip is selected

parent 66085873
...@@ -691,7 +691,11 @@ void Monitor::slotForceSize(QAction *a) ...@@ -691,7 +691,11 @@ void Monitor::slotForceSize(QAction *a)
updateGeometry(); updateGeometry();
} }
void Monitor::buildBackgroundedProducer(int pos) { void Monitor::buildBackgroundedProducer(int pos)
{
if (m_controller == nullptr) {
return;
}
if (KdenliveSettings::monitor_background() != "black") { if (KdenliveSettings::monitor_background() != "black") {
Mlt::Tractor trac(pCore->getCurrentProfile()->profile()); Mlt::Tractor trac(pCore->getCurrentProfile()->profile());
QString color = QString("color:%1").arg(KdenliveSettings::monitor_background()); QString color = QString("color:%1").arg(KdenliveSettings::monitor_background());
......
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