Fixed infinite recursion in OverviewView (#1144)

It was calling itself at the end of the function
instead of calling the parent's mousePressEvent
function.
This commit is contained in:
xarkes 2019-01-27 09:55:53 +01:00 committed by Itay Cohen
parent e246a8a9d3
commit 8c6db6e3bb

View File

@ -88,7 +88,7 @@ void OverviewView::mousePressEvent(QMouseEvent *event)
rangeRect = QRectF(x, y, w, h); rangeRect = QRectF(x, y, w, h);
viewport()->update(); viewport()->update();
emit mouseMoved(); emit mouseMoved();
mousePressEvent(event); GraphView::mousePressEvent(event);
} }
void OverviewView::mouseReleaseEvent(QMouseEvent *event) void OverviewView::mouseReleaseEvent(QMouseEvent *event)