Avoid crash when accessing the main windget position

This commit is contained in:
Klaus Basan
2019-04-27 14:32:29 +02:00
parent 3171bd5661
commit 242d6137e5
3 changed files with 11 additions and 6 deletions

View File

@@ -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()