on xenial help sign in
Turn if if else into if elseif else
commit64f51e2f422735a27fd41aa4044f45fe856d6c5e authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 26 May 2016, 09:17 (10 years ago) parent64d3f31
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 {