mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix crash when drag out of preview container.
because the tracking window is unavilable. Change-Id: I6cbdf76c7eb3eebcb628aa13496c06c4a7d4b692
This commit is contained in:
parent
b175bcf815
commit
22d612ef14
Notes:
Deepin Code Review
2018-01-15 10:57:00 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Mon, 15 Jan 2018 10:56:54 +0800 Reviewed-on: https://cr.deepin.io/30499 Project: dde/dde-dock Branch: refs/heads/master
@ -188,6 +188,9 @@ void PreviewContainer::leaveEvent(QEvent *e)
|
||||
|
||||
void PreviewContainer::dragEnterEvent(QDragEnterEvent *e)
|
||||
{
|
||||
if (!m_wmHelper->hasComposite())
|
||||
return;
|
||||
|
||||
e->accept();
|
||||
|
||||
m_needActivate = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user