on xenial help sign in
Turn if if else into if elseif else
commit7f4f7b9e5fb64ef9bfbebf9bdb3a154f880126ac authorAlbert Astals Cid <albert.astals@canonical.com> dateFri 17 Jun 2016, 01:14 (10 years ago) parent55a3c1b64f51e2
1 file changed+1−1
plugins/Ubuntu/Gestures/TouchDispatcher.cpp+1−1
plugins/Ubuntu/Gestures/TouchDispatcher.cpp+1−1
@@ -225,7 +225,7 @@ void TouchDispatcher::dispatchAsMouse(
225225 QEvent::Type eventType;
226226 if (touchMouse->state() == Qt::TouchPointPressed) {
227227 eventType = QEvent::MouseButtonPress;
228− } if (touchMouse->state() == Qt::TouchPointReleased) {
228+ } else if (touchMouse->state() == Qt::TouchPointReleased) {
229229 eventType = QEvent::MouseButtonRelease;
230230 m_touchMouseId = -1;
231231 } else {