QWindowPrivate::maybeQuitOnLastWindowClosed(): Skip tooltips
Windows of type Qt::ToolTip should not prevent closing the application when checking for the last window. Task-number: QTBUG-55523 Change-Id: I47c51abe79bf6c857aba229960de95e1a23efb10 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
This commit is contained in:
parent
7c18cb4f83
commit
29205c53e4
@ -2357,7 +2357,7 @@ void QWindowPrivate::maybeQuitOnLastWindowClosed()
|
||||
bool lastWindowClosed = true;
|
||||
for (int i = 0; i < list.size(); ++i) {
|
||||
QWindow *w = list.at(i);
|
||||
if (!w->isVisible() || w->transientParent())
|
||||
if (!w->isVisible() || w->transientParent() || w->type() == Qt::ToolTip)
|
||||
continue;
|
||||
lastWindowClosed = false;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user