core: replace throws with qFatal

This commit is contained in:
outfoxxed 2024-03-27 02:13:47 -07:00
parent 055b191a67
commit 9625129844
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 4 additions and 7 deletions

View file

@ -13,7 +13,6 @@ QSWaylandSessionLockIntegration::createShellSurface(QtWaylandClient::QWaylandWin
if (lock == nullptr || lock->surface == nullptr || !lock->surface->isExposed()) {
qFatal() << "Visibility canary failed. A window with a LockWindowExtension MUST be set to "
"visible via LockWindowExtension::setVisible";
throw nullptr;
}
return lock->surface;