mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
Merge pull request #1233 from Fizztastic/fix_340
Play cards only with double left click
This commit is contained in:
commit
2bd0133055
1 changed files with 1 additions and 1 deletions
|
|
@ -358,7 +358,7 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||||
|
|
||||||
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
||||||
{
|
{
|
||||||
if (settingsCache->getDoubleClickToPlay()) {
|
if (settingsCache->getDoubleClickToPlay() && event->buttons() == Qt::LeftButton) {
|
||||||
if (revealedCard)
|
if (revealedCard)
|
||||||
zone->removeCard(this);
|
zone->removeCard(this);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue