From dedea7a30724271d9fd596737076207338279112 Mon Sep 17 00:00:00 2001 From: wangfei Date: Sat, 23 Nov 2024 15:33:35 +0800 Subject: [PATCH] fix: exit animation of the application disappeared in treeland When clicking close button, call the widget::close. Modify that calling dapplication::quit as the same with clicking the option exit Log: --- src/widgets/dtitlebar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/dtitlebar.cpp b/src/widgets/dtitlebar.cpp index 20873d65a..97a89416e 100644 --- a/src/widgets/dtitlebar.cpp +++ b/src/widgets/dtitlebar.cpp @@ -1532,7 +1532,7 @@ void DTitlebar::setVisible(bool visible) connect(d->maxButton, SIGNAL(clicked()), this, SLOT(_q_toggleWindowState()), Qt::UniqueConnection); connect(this, SIGNAL(doubleClicked()), this, SLOT(_q_toggleWindowState()), Qt::UniqueConnection); connect(d->minButton, SIGNAL(clicked()), this, SLOT(_q_showMinimized()), Qt::UniqueConnection); - connect(d->closeButton, &DWindowCloseButton::clicked, d->targetWindow(), &QWidget::close, Qt::UniqueConnection); + connect(d->closeButton, SIGNAL(clicked(bool)), this, SLOT(_q_quitActionTriggered())); d->updateButtonsState(d->targetWindow()->windowFlags()); } else {