Commit 100967c6 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 56c58d47
......@@ -110,9 +110,7 @@ void ViewerPluginExternalscriptInterface::createAction(KActionCollection *ac)
act->setIcon(QIcon::fromTheme(icon));
}
ac->addAction(QStringLiteral("externalscript_%1").arg(info.name()), act);
QStringList actionInfo;
actionInfo.append(info.commandLine());
actionInfo.append(info.executable());
const QStringList actionInfo {info.commandLine(), info.executable()};
act->setData(actionInfo);
mAction.append(act);
......
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