From 2f8f6880cde4300d891ec9f2758da64f3143e706 Mon Sep 17 00:00:00 2001 From: chenjun Date: Thu, 30 Jul 2020 17:00:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=93=E5=BC=80?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E5=BA=94=E7=94=A8=E7=AA=97=E5=8F=A3=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8=E4=BB=BB=E5=8A=A1=E6=A0=8F=E9=A2=84=E8=A7=88=E4=B8=AD?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=85=B3=E9=97=AD=E7=AA=97=E5=8F=A3=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 因为鼠标在进入预览窗口时,触发了requestCancelPreviewWindow信号,将预览窗口的指针给置为空,当关闭应用时,无法隐藏并刷新 预览窗口 Log: 修复打开多个应用窗口,在任务栏预览中无法关闭窗口的问题 Bug: https://pms.uniontech.com/zentao/bug-view-40031.html Change-Id: I00e08d24409d346fd44f16cb5f3813694e5daaf8 Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/974 Reviewed-by: Reviewed-by: lizhongming Tested-by: --- frame/item/components/previewcontainer.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/frame/item/components/previewcontainer.cpp b/frame/item/components/previewcontainer.cpp index a2d5ed807..042b4637d 100644 --- a/frame/item/components/previewcontainer.cpp +++ b/frame/item/components/previewcontainer.cpp @@ -224,7 +224,6 @@ void PreviewContainer::onSnapshotClicked(const WId wid) Q_EMIT requestActivateWindow(wid); m_needActivate = true; m_waitForShowPreviewTimer->stop(); - requestCancelPreviewWindow(); requestHidePopup(); } @@ -248,8 +247,6 @@ void PreviewContainer::previewEntered(const WId wid) m_floatingPreview->trackWindow(snap); - requestCancelPreviewWindow(); - if (m_waitForShowPreviewTimer->isActive()) { return; }