on xenial help sign in
fix a crash when calling things with the wrong amount of arguments
f297865Michael Zanetti
plugins/Unity/Launcher/dbusinterface.cpp+5−1
@@ -158,7 +158,11 @@ bool DBusInterface::handleMessage(const QDBusMessage& message, const QDBusConnec
158 return false;
158 return false;
159 }
159 }
160
160
161+ if (message.member() == "Get" && (message.arguments().count() != 2 || message.arguments()[0].toString() != "com.canonical.Unity.Launcher.Item")) {
162+ return false;
163+ }
164+
161− if (message.member() != "GetAll" && message.arguments()[0].toString() != "com.canonical.Unity.Launcher.Item") {
165+ if (message.member() == "Set" && (message.arguments().count() != 3 || message.arguments()[0].toString() != "com.canonical.Unity.Launcher.Item")) {
162 return false;
166 return false;
163 }
167 }
164
168