mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user