Fix formatting again

This commit is contained in:
Luis Caceres 2019-12-09 17:02:42 +00:00
parent 344989785b
commit 7ef917008a

View File

@ -46,9 +46,7 @@ bool IsCorrectMediaKeyShortcut(const GlobalShortcuts::Shortcut& shortcut) {
KGlobalAccelShortcutBackend::KGlobalAccelShortcutBackend( KGlobalAccelShortcutBackend::KGlobalAccelShortcutBackend(
GlobalShortcuts* parent) GlobalShortcuts* parent)
: GlobalShortcutBackend(parent), : GlobalShortcutBackend(parent), iface_(nullptr), component_(nullptr) {}
iface_(nullptr),
component_(nullptr) {}
#else // HAVE_DBUS #else // HAVE_DBUS
KGlobalAccelShortcutBackend::KGlobalAccelShortcutBackend( KGlobalAccelShortcutBackend::KGlobalAccelShortcutBackend(
@ -102,8 +100,8 @@ void KGlobalAccelShortcutBackend::DoUnregister() {
for (const GlobalShortcuts::Shortcut& shortcut : manager_->shortcuts()) for (const GlobalShortcuts::Shortcut& shortcut : manager_->shortcuts())
UnregisterAction(shortcut.id, shortcut.action); UnregisterAction(shortcut.id, shortcut.action);
QObject::disconnect(component_, QObject::disconnect(
&OrgKdeKglobalaccelComponentInterface::globalShortcutPressed, component_, &OrgKdeKglobalaccelComponentInterface::globalShortcutPressed,
this, &KGlobalAccelShortcutBackend::OnShortcutPressed); this, &KGlobalAccelShortcutBackend::OnShortcutPressed);
#endif // HAVE_DBUS #endif // HAVE_DBUS
} }
@ -118,7 +116,8 @@ bool KGlobalAccelShortcutBackend::AcquireComponent() {
if (component_) return true; if (component_) return true;
QDBusReply<QDBusObjectPath> reply = iface_->getComponent(ComponentUniqueName()); QDBusReply<QDBusObjectPath> reply =
iface_->getComponent(ComponentUniqueName());
if (!reply.isValid()) { if (!reply.isValid()) {
if (reply.error().name() == if (reply.error().name() ==
QLatin1String("org.kde.kglobalaccel.NoSuchComponent")) QLatin1String("org.kde.kglobalaccel.NoSuchComponent"))