X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fabstractmonitor.cpp;h=8593157ee21da72d8d5ab2d36599651897ae4627;hb=de93dc84bc5f050272e4e736c3afa6ad5f3c6654;hp=b1b3875c67577330ec83ba99c481ef58da014660;hpb=d2c65ec06ade4d3cb26e649989a5b5a164637e59;p=kdenlive diff --git a/src/abstractmonitor.cpp b/src/abstractmonitor.cpp index b1b3875c..8593157e 100644 --- a/src/abstractmonitor.cpp +++ b/src/abstractmonitor.cpp @@ -41,8 +41,7 @@ AbstractMonitor::AbstractMonitor(Kdenlive::MONITORID id, MonitorManager *manager AbstractMonitor::~AbstractMonitor() { - if (videoSurface) - delete videoSurface; + delete videoSurface; } void AbstractMonitor::createVideoSurface() @@ -174,9 +173,11 @@ VideoSurface::VideoSurface(QWidget* parent) : void VideoSurface::paintEvent(QPaintEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) //WARNING: This might trigger unnecessary refreshes from MLT's producer, but without this, // as soon as monitor is covered by a popup menu or another window, image is corrupted. emit refreshMonitor(); } + +#include "abstractmonitor.moc"