@jonasschnelli wrote in #14979:
> #14573 broke < Qt5.6 compatibility due to calling the lambda version of `addAction` that was added in Qt5.6.

We currently [support](https://github.com/bitcoin/bitcoin/blob/master/doc/dependencies.md) QT >=5.2, but hardly anyone tests with that. If we make one of the Travis machines use it, we should have a better change of catching this.

See also discussion about minimum QT version in #13478 
CScript script;
        std::string create_time = "0";
        std::string address = EncodeDestination(scriptid);
        
        auto it = pwallet->m_script_metadata.find(scriptid);
        if (it != pwallet->m_script_metadata.end()) {
            create_time = FormatISO8601DateTime(it->second.nCreateTime);
        }
        if(pwallet->GetCScript(scriptid, script)) {
            file << strprintf("%s %s script=1", HexStr(script.begin(), script.end()), create_time);
            file << strprintf(" # addr=%s\n", address);
        }
    }
    file << "\n";
    file << "# End of dump\n";
    file.close();
    UniValue reply(UniValue::VOBJ);
    reply.pushKV("filename", filepath.string());
    return reply;
}
struct ImportData
{
    
    std::unique_ptr<CScript> redeemscript; 
    std::unique_ptr<CScript> witnessscript; 
    
    std::set<CScript> import_scripts;
    std::map<CKeyID, bool> used_keys; 
};
enum class ScriptContext