--warning: Don't try to connect to a null object
It happens when running without libinput.
This commit is contained in:
parent
8950b78121
commit
4fb2493826
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue