Commit 14210789 authored by David Faure's avatar David Faure

Fix handling of activateRequested, the first arg is the exe name, strip it off.

parent 7776714c
......@@ -55,7 +55,11 @@ int main(int argc, char **argv)
QObject::connect(&service, &KDBusService::activateRequested, &app, &PrintQueue::showQueues);
QObject::connect(&service, &KDBusService::activateRequested, &app, [&app](const QStringList &arguments) {
if (!arguments.isEmpty()) {
app.showQueues(arguments.mid(1)); // strip off executable name
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment