Skip to content

Commit

Permalink
Right missing right click on QgsColorButtonV2
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Feb 10, 2015
1 parent 27bf440 commit 04c37f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gui/qgscolorbuttonv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ void QgsColorButtonV2::mousePressEvent( QMouseEvent *e )
return;
}

if ( e->button() == Qt::LeftButton )
if ( e->button() == Qt::RightButton )
{
QToolButton::showMenu();
return;
}
else if ( e->button() == Qt::LeftButton )
{
mDragStartPosition = e->pos();
}
Expand Down

1 comment on commit 04c37f9

@NathanW2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was meant to be "Fix missing right click" not sure what I was talking about that night ;)

Please sign in to comment.