diff --git a/src/tabletmodemanager.cpp b/src/tabletmodemanager.cpp index e23d91ec01..629d287065 100644 --- a/src/tabletmodemanager.cpp +++ b/src/tabletmodemanager.cpp @@ -61,6 +61,9 @@ public: , m_parent(parent) { auto c = LibInput::Connection::self(); + if (!c) { + return; + } connect(c, &LibInput::Connection::deviceAdded, this, &TabletModeTouchpadRemovedSpy::refresh); connect(c, &LibInput::Connection::deviceRemoved, this, &TabletModeTouchpadRemovedSpy::refresh);