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: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 4 additions and 7 deletions

View file

@ -64,7 +64,8 @@ LockWindowExtension* LockWindowExtension::get(QWindow* window) {
}
bool LockWindowExtension::attach(QWindow* window, SessionLockManager* manager) {
if (this->surface != nullptr) throw "Cannot change the attached window of a LockWindowExtension";
if (this->surface != nullptr)
qFatal() << "Cannot change the attached window of a LockWindowExtension";
auto* current = LockWindowExtension::get(window);
QtWaylandClient::QWaylandWindow* waylandWindow = nullptr;