Skip to content

Commit 940aa00

Browse files
deepin-ci-robot18202781743
authored andcommitted
sync: from linuxdeepin/dtkwidget
Synchronize source files from linuxdeepin/dtkwidget. Source-pull-request: linuxdeepin/dtkwidget#628
1 parent dc2415b commit 940aa00

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/widgets/dfloatingmessage.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ void DFloatingMessagePrivate::init()
8282
hBoxLayout->addWidget(closeButton);
8383

8484
q->connect(closeButton, &DIconButton::clicked, q, [q]() {
85-
if (q->windowHandle()) {
86-
q->windowHandle()->close();
87-
}
85+
q->close();
86+
8887
if(ENABLE_ANIMATIONS && ENABLE_ANIMATION_MESSAGE) {
8988
Q_EMIT q->messageClosed();
9089
}

0 commit comments

Comments
 (0)