From f3c94c85ac99e187644f5dcc14f610cd4f159745 Mon Sep 17 00:00:00 2001 From: zccrs Date: Mon, 15 Jul 2019 15:30:06 +0800 Subject: [PATCH] fix: crash at AppDragWidget mark m_drag to nullptr when the app drag widget destroyed https://github.com/linuxdeepin/internal-discussion/issues/1936 --- frame/item/appitem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index 421402830..865b92541 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -475,6 +475,7 @@ void AppItem::startDrag() // handle drag finished here connect(m_drag->appDragWidget(), &AppDragWidget::destroyed, this, [=] { m_dragging = false; + m_drag.clear(); setVisible(true); update(); });