forked from quickshell/quickshell
core: replace throws with qFatal
This commit is contained in:
parent
055b191a67
commit
9625129844
5 changed files with 4 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue