upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / deepin-notifications / trunk / fix-crash.patch
blobef875bfd2d20e697f90b56cc12ab18d8d05e2788
1 From e92ce8b06b298622253fe2a55b2fa524aa342914 Mon Sep 17 00:00:00 2001
2 From: haruyukilxz <lxz@ilxz.me>
3 Date: Wed, 11 Jul 2018 13:07:23 +0800
4 Subject: [PATCH] fix(osd): null pointer exception notify
6 Change-Id: I082595e578839700117e006f344e948ce125e131
7 ---
9 diff --git a/dde-osd/notification/bubble.cpp b/dde-osd/notification/bubble.cpp
10 index 3998e37..46f16e7 100644
11 --- a/dde-osd/notification/bubble.cpp
12 +++ b/dde-osd/notification/bubble.cpp
13 @@ -175,6 +175,8 @@
15 DBlurEffectWidget::hideEvent(event);
17 + m_outAnimation->stop();
19 m_quitTimer->start();
22 @@ -210,7 +212,10 @@
24 void Bubble::onOutAnimFinished()
26 - Q_EMIT expired(m_entity->id().toInt());
27 + // FIXME: There should be no empty pointers here
28 + if (m_entity) {
29 + Q_EMIT expired(m_entity->id().toInt());
30 + }
33 void Bubble::updateContent()