mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Avoid crash when accessing the main windget position
This commit is contained in:
@@ -355,7 +355,8 @@ namespace BlackGui
|
||||
QRect CGuiApplication::currentScreenGeometry()
|
||||
{
|
||||
const QScreen *s = currentScreen();
|
||||
return s->geometry();
|
||||
if (s) return s->geometry();
|
||||
return {};
|
||||
}
|
||||
|
||||
void CGuiApplication::modalWindowToFront()
|
||||
|
||||
Reference in New Issue
Block a user