From 30404b49d8cc9ad8c4d9f128952844c20da0ad0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 13 Oct 2021 15:46:12 +0200 Subject: [PATCH] Remove unused parentWidget variable in QWidgetPrivate::handleClose It was a leftover from when the quitOnClose logic was duplicated in the handleClose function. Change-Id: I38903b7e30ef1cf1d0dce87f61097a83259aea8e Reviewed-by: Doris Verria Reviewed-by: Volker Hilsheimer --- src/widgets/kernel/qwidget.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index ea7ef1468b..e6b49e8c45 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -8398,7 +8398,6 @@ bool QWidgetPrivate::handleClose(CloseMode mode) Q_Q(QWidget); QPointer that = q; - QPointer parentWidget = (q->parentWidget() && !QObjectPrivate::get(q->parentWidget())->wasDeleted) ? q->parentWidget() : nullptr; if (data.in_destructor) mode = CloseNoEvent;