mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 03:45:56 +01:00
Fix compilation of the gnome global shortcuts backend when dbus isn't available
This commit is contained in:
parent
ce501d982a
commit
4cabb98b43
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user