@@ -160,31 +160,32 @@ bool DBusInterface::handleMessage(const QDBusMessage& message, const QDBusConnec
160160 LauncherItem *item = static_cast<LauncherItem*>(m_launcherModel->get(index));
161161
162162 QVariantList retval;
163+ QString cachedString = message.arguments()[1].toString();
163164 if (message.member() == "Get") {
164165 if (!item) {
165166 return false;
166167 }
167− if (message.arguments()[1].toString() == "count") {
168+ if (cachedString == "count") {
168169 retval.append(QVariant::fromValue(QDBusVariant(item->count())));
169− } else if (message.arguments()[1].toString() == "countVisible") {
170+ } else if (cachedString == "countVisible") {
170171 retval.append(QVariant::fromValue(QDBusVariant(item->countVisible())));
171− } else if (message.arguments()[1].toString() == "progress") {
172+ } else if (cachedString == "progress") {
172173 retval.append(QVariant::fromValue(QDBusVariant(item->progress())));
173174 }
174175 } else if (message.member() == "Set") {
175− if (message.arguments()[1].toString() == "count") {
176+ if (cachedString == "count") {
176177 int newCount = message.arguments()[2].value<QDBusVariant>().variant().toInt();
177178 if (!item || newCount != item->count()) {
178179 Q_EMIT countChanged(appid, newCount);
179180 notifyPropertyChanged("com.canonical.Unity.Launcher.Item", encodeAppId(appid), "count", QVariant(newCount));
180181 }
181− } else if (message.arguments()[1].toString() == "countVisible") {
182+ } else if (cachedString == "countVisible") {
182183 bool newVisible = message.arguments()[2].value<QDBusVariant>().variant().toBool();
183184 if (!item || newVisible != item->countVisible()) {
184185 Q_EMIT countVisibleChanged(appid, newVisible);
185186 notifyPropertyChanged("com.canonical.Unity.Launcher.Item", encodeAppId(appid), "countVisible", newVisible);
186187 }
187− } else if (message.arguments()[1].toString() == "progress") {
188+ } else if (cachedString == "progress") {
188189 int newProgress = message.arguments()[2].value<QDBusVariant>().variant().toInt();
189190 if (!item || newProgress != item->progress()) {
190191 Q_EMIT progressChanged(appid, newProgress);