Skip to content

Commit f3c94c8

Browse files
committed
fix: crash at AppDragWidget
mark m_drag to nullptr when the app drag widget destroyed linuxdeepin/internal-discussion#1936
1 parent 5011ec7 commit f3c94c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frame/item/appitem.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ void AppItem::startDrag()
475475
// handle drag finished here
476476
connect(m_drag->appDragWidget(), &AppDragWidget::destroyed, this, [=] {
477477
m_dragging = false;
478+
m_drag.clear();
478479
setVisible(true);
479480
update();
480481
});

0 commit comments

Comments
 (0)