fix: crash at AppDragWidget

mark m_drag to nullptr when the app drag widget destroyed

https://github.com/linuxdeepin/internal-discussion/issues/1936
This commit is contained in:
zccrs 2019-07-15 15:30:06 +08:00
parent 5011ec7f91
commit f3c94c85ac

View File

@ -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();
});