mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Only emit cardClicked if it wasn't a right click. (#5838)
* Only emit cardClicked if it wasn't a right click. * Oh. --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
00095cb71c
commit
adaa31b34d
1 changed files with 2 additions and 0 deletions
|
|
@ -334,6 +334,8 @@ void CardInfoPictureWidget::mousePressEvent(QMouseEvent *event)
|
|||
QWidget::mousePressEvent(event);
|
||||
if (event->button() == Qt::RightButton) {
|
||||
createRightClickMenu()->popup(QCursor::pos());
|
||||
} else {
|
||||
emit cardClicked();
|
||||
}
|
||||
|
||||
emit cardClicked();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue