Commit 8e97287a authored by Volker Krause's avatar Volker Krause
Browse files

Filter out pkpass types we can't display yet

parent 0efe8246
......@@ -468,6 +468,10 @@ bool ApplicationController::importGenericPkPass(const KItinerary::ExtractorDocum
#ifdef NEW_PKPASS_IMPORT
if (node.mimeType() == QLatin1String("application/vnd.apple.pkpass")) {
const auto pass = node.content<KPkPass::Pass*>();
if (pass->type() == KPkPass::Pass::Coupon || pass->type() == KPkPass::Pass::StoreCard) {
// no support for displaying those yet
return false;
}
GenericPkPass wrapper;
wrapper.setPkpassPassTypeIdentifier(pass->passTypeIdentifier());
......
Supports Markdown
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