diff options
author | Mahmoud Badri <mahmoud.badri@qt.io> | 2022-10-12 20:54:24 +0300 |
---|---|---|
committer | Mahmoud Badri <mahmoud.badri@qt.io> | 2022-10-13 09:11:11 +0000 |
commit | 348bad2fdb1c99cef37cdef2c6c02950e39f6499 (patch) | |
tree | 188686e9593b8893a5c953fc6264d5596ec7808c | |
parent | 0645a8aef341ef01628bb05fae4c54fc54297e24 (diff) |
QmlDesigner: Fix assets library drag glitch
When clicking an asset and then moving the mouse, drag is still
active. Happens on mac and linux only.
Change-Id: Ic61a9316013271e8e16a30629416787c863840a3
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r-- | src/plugins/qmldesigner/components/assetslibrary/assetslibrarywidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/assetslibrary/assetslibrarywidget.cpp b/src/plugins/qmldesigner/components/assetslibrary/assetslibrarywidget.cpp index 7c111f80c0..93057e6733 100644 --- a/src/plugins/qmldesigner/components/assetslibrary/assetslibrarywidget.cpp +++ b/src/plugins/qmldesigner/components/assetslibrary/assetslibrarywidget.cpp @@ -91,6 +91,8 @@ bool AssetsLibraryWidget::eventFilter(QObject *obj, QEvent *event) m_assetsToDrag.clear(); } } + } else if (event->type() == QMouseEvent::MouseButtonRelease) { + m_assetsToDrag.clear(); } return QObject::eventFilter(obj, event); |