-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
6.6.2
-
None
I got confused when debugging in qguiapplication.cpp line 3731:
bool QGuiApplicationPrivate::canQuitAutomatically()
{
if (quitOnLastWindowClosed && !lastWindowClosed())
return false;
return QCoreApplicationPrivate::canQuitAutomatically();
}
As I understand it, this method should return false prematurely if quitOnLastWindowClosed is false or lastWindowClosed is false. But this translates to:
bool QGuiApplicationPrivate::canQuitAutomatically()
{
if (!quitOnLastWindowClosed || !lastWindowClosed())
return false;
return QCoreApplicationPrivate::canQuitAutomatically();
}
Or do I misunderstand it?