mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-02-25 03:43:58 +11:00
core: replace throws with qFatal
This commit is contained in:
parent
055b191a67
commit
9625129844
5 changed files with 4 additions and 7 deletions
|
|
@ -19,12 +19,10 @@ QSWaylandSessionLockSurface::QSWaylandSessionLockSurface(QtWaylandClient::QWayla
|
|||
|
||||
if (this->ext == nullptr) {
|
||||
qFatal() << "QSWaylandSessionLockSurface created with null LockWindowExtension";
|
||||
throw nullptr;
|
||||
}
|
||||
|
||||
if (this->ext->lock == nullptr) {
|
||||
qFatal() << "QSWaylandSessionLock for QSWaylandSessionLockSurface died";
|
||||
throw nullptr;
|
||||
}
|
||||
|
||||
wl_output* output = nullptr; // NOLINT (include)
|
||||
|
|
@ -34,7 +32,6 @@ QSWaylandSessionLockSurface::QSWaylandSessionLockSurface(QtWaylandClient::QWayla
|
|||
output = waylandScreen->output();
|
||||
} else {
|
||||
qFatal() << "Session lock screen does not corrospond to a real screen. Force closing window";
|
||||
throw nullptr;
|
||||
}
|
||||
|
||||
this->init(this->ext->lock->get_lock_surface(window->waylandSurface()->object(), output));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue