From d7ca86b61e61f9375f3924397155b05e9c67d632 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Wed, 13 Apr 2016 13:36:36 +0200 Subject: Set the private active variable to true and not the one passed in Change-Id: I953370e353eb0c67f086b3a539985701723798e9 Reviewed-by: Mitch Curtis --- src/quick/items/qquickdrag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quick/items') diff --git a/src/quick/items/qquickdrag.cpp b/src/quick/items/qquickdrag.cpp index 279f5e5299..7e1ffb6b7e 100644 --- a/src/quick/items/qquickdrag.cpp +++ b/src/quick/items/qquickdrag.cpp @@ -304,7 +304,7 @@ void QQuickDragAttached::setActive(bool active) else if (d->dragType == QQuickDrag::Automatic) { // There are different semantics than start() since startDrag() // may be called after an internal drag is already started. - active = true; + d->active = true; emit activeChanged(); d->startDrag(d->supportedActions); } -- cgit v1.2.3