Add warning when can't connect with wiimotedev dbus service
This commit is contained in:
parent
7d4e8d6add
commit
56c0c3807f
@ -48,6 +48,9 @@ void WiimotedevShortcuts::SetWiimotedevInterfaceActived(bool actived) {
|
|||||||
|
|
||||||
connect(wiimotedev_iface_.get(), SIGNAL(dbusWiimoteGeneralButtons(uint,qulonglong)),
|
connect(wiimotedev_iface_.get(), SIGNAL(dbusWiimoteGeneralButtons(uint,qulonglong)),
|
||||||
this, SLOT(DbusWiimoteGeneralButtons(uint,qulonglong)));
|
this, SLOT(DbusWiimoteGeneralButtons(uint,qulonglong)));
|
||||||
|
|
||||||
|
if (!wiimotedev_iface_.get()->isValid())
|
||||||
|
qWarning("Error connecting to the Wiimotedev-daemon DBUS service");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!actived && wiimotedev_iface_)
|
if (!actived && wiimotedev_iface_)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user