Commit c162a83d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Adapt to new api

parent ac142bfc
......@@ -45,7 +45,7 @@ void HandleClickedUrlJob::start()
MessageHelper::initHeader(mMsg, KMKernel::self()->identityManager(), mIdentity);
mMsg->contentType()->setCharset("utf-8");
const QList<QPair<QString, QString> > fields = MessageCore::StringUtil::parseMailtoUrl(mUrl);
const QVector<QPair<QString, QString> > fields = MessageCore::StringUtil::parseMailtoUrl(mUrl);
for (int i = 0; i < fields.count(); ++i) {
const QPair<QString, QString> element = fields.at(i);
if (element.first == QLatin1String("to")) {
......
......@@ -393,7 +393,7 @@ bool KMKernel::handleCommandLine(bool noArgsOpensReader, const QStringList &args
for (const QString &arg : parser.positionalArguments()) {
if (arg.startsWith(QLatin1String("mailto:"), Qt::CaseInsensitive)) {
const QUrl urlDecoded(QUrl::fromPercentEncoding(arg.toUtf8()));
const QList<QPair<QString, QString> > values = MessageCore::StringUtil::parseMailtoUrl(urlDecoded);
const QVector<QPair<QString, QString> > values = MessageCore::StringUtil::parseMailtoUrl(urlDecoded);
QString previousKey;
for (int i = 0; i < values.count(); ++i) {
const QPair<QString, QString> element = values.at(i);
......
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