diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-06-18 07:50:27 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-06-18 07:50:27 (GMT) |
commit | 6371f5b7613c23ca606ac6b9c0a857479c7e89f0 (patch) | |
tree | 89544e1d2e0a7a55a2a78c4fab085e631cbaadff /src/declarative/fx | |
parent | 933317ce1b7034b8c30445c30648413b6781eb0a (diff) | |
download | Qt-6371f5b7613c23ca606ac6b9c0a857479c7e89f0.zip Qt-6371f5b7613c23ca606ac6b9c0a857479c7e89f0.tar.gz Qt-6371f5b7613c23ca606ac6b9c0a857479c7e89f0.tar.bz2 |
Don't move item if it hasn't been dragged
Diffstat (limited to 'src/declarative/fx')
-rw-r--r-- | src/declarative/fx/qfxflowview.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxflowview.cpp b/src/declarative/fx/qfxflowview.cpp index 911fc3d..e45f939 100644 --- a/src/declarative/fx/qfxflowview.cpp +++ b/src/declarative/fx/qfxflowview.cpp @@ -286,8 +286,11 @@ void QFxFlowView::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) clearTimeLine(); - m_items.removeAll(m_dragItem); - m_items.insert(m_dragIdx, m_dragItem); + if (m_dragIdx != -1) { + m_items.removeAll(m_dragItem); + m_items.insert(m_dragIdx, m_dragItem); + } + reflow(true); m_dragItem = 0; m_dragIdx = -1; |