on xenial help sign in
Turn if if else into if elseif else
64f51e2Albert Astals Cid
plugins/Ubuntu/Gestures/TouchDispatcher.cpp+1−1
@@ -225,7 +225,7 @@ void TouchDispatcher::dispatchAsMouse(
225 QEvent::Type eventType;
225 QEvent::Type eventType;
226 if (touchMouse->state() == Qt::TouchPointPressed) {
226 if (touchMouse->state() == Qt::TouchPointPressed) {
227 eventType = QEvent::MouseButtonPress;
227 eventType = QEvent::MouseButtonPress;
228− } if (touchMouse->state() == Qt::TouchPointReleased) {
228+ } else if (touchMouse->state() == Qt::TouchPointReleased) {
229 eventType = QEvent::MouseButtonRelease;
229 eventType = QEvent::MouseButtonRelease;
230 m_touchMouseId = -1;
230 m_touchMouseId = -1;
231 } else {
231 } else {