Normalize handling of close event for Frame and FloatingWindow too

Fixes windows not closing correctly for QtQuick
This commit is contained in:
Sergio Martins
2022-06-05 12:44:33 +01:00
parent f11a6a6a8c
commit 792aaf76da
9 changed files with 9 additions and 17 deletions

View File

@@ -1022,7 +1022,6 @@ void DockWidget::Private::saveLastFloatingGeometry()
void DockWidget::Private::onCloseEvent(QCloseEvent *e)
{
qDebug() << Q_FUNC_INFO;
e->accept(); // By default we accept, means DockWidget closes
if (guest) {
// Give a chance for the widget to ignore