on xenial help sign in
Some tabs snuck in
commit267a16bc21e33394647a17e52f48672d0522a9ff authorTed Gould <ted@gould.cx> dateTue 29 Apr 2014, 10:38 (12 years ago) parent16a592d
1 file changed+9−9
plugins/Unity/Launcher/backend/launcherbackend.cpp+9−9
plugins/Unity/Launcher/backend/launcherbackend.cpp+9−9
@@ -52,10 +52,10 @@ LauncherBackend::LauncherBackend(QObject *parent):
5252 QDBusConnection con = QDBusConnection::sessionBus();
5353 if (!con.registerService("com.canonical.Unity.Launcher")) {
5454 qDebug() << "Unable to register launcher name";
55− }
55+ }
5656 if (!con.registerVirtualObject("/com/canonical/Unity/Launcher", this, QDBusConnection::VirtualObjectRegisterOption::SubPath)) {
5757 qDebug() << "Unable to register launcher object";
58− }
58+ }
5959}
6060
6161LauncherBackend::~LauncherBackend()
@@ -427,23 +427,23 @@ bool LauncherBackend::handleMessage(const QDBusMessage& message, const QDBusConn
427427 /* Check to make sure we're getting properties on our interface */
428428 if (message.type() != QDBusMessage::MessageType::MethodCallMessage) {
429429 return false;
430− }
430+ }
431431 if (message.interface() != "org.freedesktop.DBus.Properties") {
432432 return false;
433− }
433+ }
434434 if (message.arguments()[0].toString() != "com.canonical.Unity.Launcher.Item") {
435435 return false;
436− }
436+ }
437437
438438 /* Break down the path to just the app id */
439439 QString pathtemp = message.path();
440440 if (!pathtemp.startsWith("/com/canonical/Unity/Launcher/")) {
441441 return false;
442− }
442+ }
443443 pathtemp.remove("/com/canonical/Unity/Launcher/");
444444 if (pathtemp.indexOf('/') >= 0) {
445445 return false;
446− }
446+ }
447447
448448 /* Find ourselves an appid */
449449 QString appid = decodeAppId(pathtemp);
@@ -454,13 +454,13 @@ bool LauncherBackend::handleMessage(const QDBusMessage& message, const QDBusConn
454454 retval.append(QVariant::fromValue(QDBusVariant(this->count(appid))));
455455 } else if (message.arguments()[1].toString() == "countVisible") {
456456 retval.append(QVariant::fromValue(QDBusVariant(this->countVisible(appid))));
457− }
457+ }
458458 } else if (message.member() == "Set") {
459459 if (message.arguments()[1].toString() == "count") {
460460 this->setCount(appid, message.arguments()[2].value<QDBusVariant>().variant().toInt());
461461 } else if (message.arguments()[1].toString() == "countVisible") {
462462 this->setCountVisible(appid, message.arguments()[2].value<QDBusVariant>().variant().toBool());
463− }
463+ }
464464 } else if (message.member() == "GetAll") {
465465 retval.append(this->itemToVariant(appid));
466466 } else {