summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <[email protected]>2017-10-10 18:22:11 +0200
committerDaniel Vrátil <[email protected]>2017-10-10 18:27:55 +0200
commit037cdafea0de27a3b5d2a8231e10f1651b0f7611 (patch)
treebb2c6483a89b6f0d27ad8eb50b4cbfe0e30a421b
parent57761e31e5014712701a5c28f2ae0866573f3549 (diff)
Don't discard duplicate query items
Allows multiple occurences of e.g. attachment query item.
-rw-r--r--messagecore/src/utils/stringutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/messagecore/src/utils/stringutil.cpp b/messagecore/src/utils/stringutil.cpp
index aae38e0..d39fa6a 100644
--- a/messagecore/src/utils/stringutil.cpp
+++ b/messagecore/src/utils/stringutil.cpp
@@ -180,7 +180,7 @@ QMap<QString, QString> parseMailtoUrl(const QUrl &url)
}
QUrlQuery query(url);
Q_FOREACH (const auto &queryItem, query.queryItems(QUrl::FullyDecoded)) {
- values.insert(queryItem.first, queryItem.second);
+ values.insertMulti(queryItem.first, queryItem.second);
}
QStringList to;