diff --git a/src/plugins/qmldesigner/components/formeditor/dragtool.cpp b/src/plugins/qmldesigner/components/formeditor/dragtool.cpp index e2e4e31f943b0f0b0a971cb434165ff6987b5940..132bd55f4144cc89eb3c62e268b5b29b17bf3d24 100644 --- a/src/plugins/qmldesigner/components/formeditor/dragtool.cpp +++ b/src/plugins/qmldesigner/components/formeditor/dragtool.cpp @@ -213,6 +213,7 @@ void DragTool::dragEnterEvent(QGraphicsSceneDragDropEvent * event) if (event->mimeData()->hasFormat("application/vnd.bauhaus.itemlibraryinfo") || event->mimeData()->hasFormat("application/vnd.bauhaus.libraryresource")) { if (!m_rewriterTransaction.isValid()) { + view()->clearSelectedModelNodes(); m_rewriterTransaction = view()->beginRewriterTransaction(); } }