Fix compilation of the gnome global shortcuts backend when dbus isn't available

This commit is contained in:
David Sansome 2011-10-15 20:49:53 +01:00
parent ce501d982a
commit 4cabb98b43
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ bool GnomeGlobalShortcutBackend::DoRegister() {
} }
void GnomeGlobalShortcutBackend::RegisterFinished(QDBusPendingCallWatcher* watcher) { void GnomeGlobalShortcutBackend::RegisterFinished(QDBusPendingCallWatcher* watcher) {
#ifdef QT_DBUS_LIB
QDBusMessage reply = watcher->reply(); QDBusMessage reply = watcher->reply();
watcher->deleteLater(); watcher->deleteLater();
@ -90,6 +91,7 @@ void GnomeGlobalShortcutBackend::RegisterFinished(QDBusPendingCallWatcher* watch
is_connected_ = true; is_connected_ = true;
qLog(Debug) << "registered"; qLog(Debug) << "registered";
#endif // QT_DBUS_LIB
} }
void GnomeGlobalShortcutBackend::DoUnregister() { void GnomeGlobalShortcutBackend::DoUnregister() {