From 56c0c3807f1c3589287469d51ceb5f32f91e3958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Burdukiewicz?= Date: Wed, 1 Sep 2010 00:41:19 +0000 Subject: [PATCH] Add warning when can't connect with wiimotedev dbus service --- src/wiimotedev/shortcuts.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wiimotedev/shortcuts.cpp b/src/wiimotedev/shortcuts.cpp index f0f7c48af..27104586a 100644 --- a/src/wiimotedev/shortcuts.cpp +++ b/src/wiimotedev/shortcuts.cpp @@ -48,6 +48,9 @@ void WiimotedevShortcuts::SetWiimotedevInterfaceActived(bool actived) { connect(wiimotedev_iface_.get(), SIGNAL(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_)