Commit 608e473e authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Fix Windows cross-build with gcc 8

parent 260f57cf
Pipeline #203623 failed with stage
in 51 seconds
......@@ -301,8 +301,9 @@ public:
private:
InfoField *attributeField(const QString &attributeName)
{
if (ui.smimeAttributeFields.contains(attributeName)) {
return ui.smimeAttributeFields.at(attributeName).get();
const auto keyValuePairIt = ui.smimeAttributeFields.find(attributeName);
if (keyValuePairIt != ui.smimeAttributeFields.end()) {
return (*keyValuePairIt).second.get();
}
return nullptr;
}
......
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