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 <doris.verria@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
879f86098e
commit
30404b49d8
@ -8398,7 +8398,6 @@ bool QWidgetPrivate::handleClose(CloseMode mode)
|
||||
|
||||
Q_Q(QWidget);
|
||||
QPointer<QWidget> that = q;
|
||||
QPointer<QWidget> parentWidget = (q->parentWidget() && !QObjectPrivate::get(q->parentWidget())->wasDeleted) ? q->parentWidget() : nullptr;
|
||||
|
||||
if (data.in_destructor)
|
||||
mode = CloseNoEvent;
|
||||
|
Loading…
Reference in New Issue
Block a user