Edit owner trust level.
Inplace editing with a combobox if user is allowed. in app config file.
This commit is contained in:
@@ -77,4 +77,15 @@ const string GpgMEWorker::ImportKey(const char * filePath, Error& e)
|
||||
|
||||
fclose(kFp);
|
||||
return keyid;
|
||||
}
|
||||
}
|
||||
|
||||
const Error GpgMEWorker::EditOwnerTrust(const char* anyFullId, GpgME::Key::OwnerTrust trustLevel)
|
||||
{
|
||||
Error e;
|
||||
Key k = FindKey(anyFullId, e, false);
|
||||
if (e.code() != 0)
|
||||
return e;
|
||||
SetOwnerTrustEditInteractor * interactor = new SetOwnerTrustEditInteractor(trustLevel);
|
||||
GpgME::Data d; // Internal processing data
|
||||
return m_ctx->edit(k, std::unique_ptr<SetOwnerTrustEditInteractor> (interactor), d);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user