summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2018-12-29 17:59:31 +0100
committerAlbert Astals Cid <[email protected]>2018-12-29 17:59:31 +0100
commitd144cd3b84446634bb0a1332ec5f9017d651ec6b (patch)
tree08207639a741c538fa41e4469692c2918c6b1113
parent98117d9cad83c2ad9500624fb7179f710d6b10fd (diff)
Fix going into the config dialog sometimes breaking left buttonv18.12.1
BUGS: 402655
-rw-r--r--src/engine/trigger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/trigger.cpp b/src/engine/trigger.cpp
index 6ecc974..1a97355 100644
--- a/src/engine/trigger.cpp
+++ b/src/engine/trigger.cpp
@@ -158,7 +158,7 @@ bool Palapeli::Trigger::isValid() const
if (m_wheelDirection > 0 && m_button > 0)
return false; //do not allow wheel and mouse triggers at the same time
else
- return m_button >= 0; //do not allow negative m_button values
+ return m_button != ((Qt::MouseButton) -1); //do not allow 'negative' m_button values
}
QByteArray Palapeli::Trigger::serialized() const