aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickdrag.cpp
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2016-04-13 13:36:36 +0200
committerAndy Shaw <andy.shaw@theqtcompany.com>2016-04-14 08:18:09 +0000
commitd7ca86b61e61f9375f3924397155b05e9c67d632 (patch)
tree124551a00bd09118ac4c6e3e5ff9d817e6ffe2ad /src/quick/items/qquickdrag.cpp
parent81768d64fda69a7d464338660b552979b9e74b3a (diff)
Set the private active variable to true and not the one passed in
Change-Id: I953370e353eb0c67f086b3a539985701723798e9 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/quick/items/qquickdrag.cpp')
-rw-r--r--src/quick/items/qquickdrag.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}