counter context sensative (#2714)

This commit is contained in:
backendr 2017-05-13 11:48:26 +02:00 committed by ctrlaltca
parent d9230d6c6b
commit 77e0cddbae
2 changed files with 5 additions and 2 deletions

View file

@ -341,8 +341,10 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
{
if (event->button() == Qt::RightButton) {
if (cardMenu)
if (!cardMenu->isEmpty())
if (!cardMenu->isEmpty()) {
owner->updateCardMenu(this);
cardMenu->exec(event->screenPos());
}
} else if ((event->button() == Qt::LeftButton) && !settingsCache->getDoubleClickToPlay()) {
bool hideCard = false;