(#466) Selection of curve only on LMB pressed

Made sure that the selection is not done on both left mouse button
pressed and released.
This commit is contained in:
Pål Hagen 2015-09-24 15:09:19 +02:00
parent 895a16f43f
commit 1e5b489133

View File

@ -205,7 +205,7 @@ bool RiuWellLogTrackPlot::eventFilter(QObject* watched, QEvent* event)
QMouseEvent* mouseEvent = dynamic_cast<QMouseEvent*>(event);
if (mouseEvent)
{
if (mouseEvent->button() == Qt::LeftButton)
if (mouseEvent->button() == Qt::LeftButton && mouseEvent->type() == QMouseEvent::MouseButtonPress)
{
selectClosestCurve(mouseEvent->pos());
}