Skip to content

Commit

Permalink
Merge pull request #623 from mmuetzel/gui
Browse files Browse the repository at this point in the history
GUI: Add parenthesis in condition for clarity.
  • Loading branch information
raback authored Jan 12, 2025
2 parents 4c1a560 + bf04cc4 commit af96d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ElmerGUI/Application/src/glwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ void GLWidget::mousePressEvent(QMouseEvent *event)
//-----------------------------------------------------------------------------
void GLWidget::mouseReleaseEvent(QMouseEvent *event)
{
if(event->button() == Qt::RightButton & event->pos() == lastPressPos){
if((event->button() == Qt::RightButton) && (event->pos() == lastPressPos)) {
#if WITH_QT6
((MainWindow*)parent())->showContextMenu(event->globalPosition().toPoint());
#else
Expand Down

0 comments on commit af96d9b

Please sign in to comment.