simple style fixes
This commit is contained in:
parent
fc754ec380
commit
a21b5a8844
@ -177,8 +177,9 @@ void SigningPrivate::splitKeysByTrustLevel()
|
|||||||
while (!error) { // Loop 2
|
while (!error) { // Loop 2
|
||||||
|
|
||||||
GpgME::Key key = m_gpgContext->nextKey(error);
|
GpgME::Key key = m_gpgContext->nextKey(error);
|
||||||
if (error)
|
if (error) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
QByteArray data(key.subkey(0).fingerprint());
|
QByteArray data(key.subkey(0).fingerprint());
|
||||||
|
|
||||||
@ -202,8 +203,9 @@ void SigningPrivate::splitKeysByTrustLevel()
|
|||||||
while (!error) { // Loop 3
|
while (!error) { // Loop 3
|
||||||
|
|
||||||
GpgME::Key key = m_gpgContext->nextKey(error);
|
GpgME::Key key = m_gpgContext->nextKey(error);
|
||||||
if (error)
|
if (error) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
QByteArray data(key.subkey(0).fingerprint());
|
QByteArray data(key.subkey(0).fingerprint());
|
||||||
|
|
||||||
@ -327,8 +329,9 @@ QStringList SigningPrivate::keysID(const bool returnPrivate) const
|
|||||||
GpgME::Error error = m_gpgContext->startKeyListing("", returnPrivate);
|
GpgME::Error error = m_gpgContext->startKeyListing("", returnPrivate);
|
||||||
while (!error) {
|
while (!error) {
|
||||||
GpgME::Key k = m_gpgContext->nextKey(error);
|
GpgME::Key k = m_gpgContext->nextKey(error);
|
||||||
if (error)
|
if (error) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
result.append(k.subkey(0).fingerprint());
|
result.append(k.subkey(0).fingerprint());
|
||||||
}
|
}
|
||||||
@ -372,8 +375,9 @@ QString SigningPrivate::descriptiveString(const QString &keyID) const
|
|||||||
GpgME::Error error = m_gpgContext->startKeyListing("");
|
GpgME::Error error = m_gpgContext->startKeyListing("");
|
||||||
while (!error) {
|
while (!error) {
|
||||||
GpgME::Key k = m_gpgContext->nextKey(error);
|
GpgME::Key k = m_gpgContext->nextKey(error);
|
||||||
if (error)
|
if (error) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
QString fullID(k.subkey(0).fingerprint());
|
QString fullID(k.subkey(0).fingerprint());
|
||||||
if (fullID.contains(keyID)) {
|
if (fullID.contains(keyID)) {
|
||||||
@ -503,8 +507,9 @@ void SigningPrivate::keyRemoved(const QString &path)
|
|||||||
GpgME::Error error = m_gpgContext->startKeyListing("");
|
GpgME::Error error = m_gpgContext->startKeyListing("");
|
||||||
while (!error) {
|
while (!error) {
|
||||||
GpgME::Key k = m_gpgContext->nextKey(error);
|
GpgME::Key k = m_gpgContext->nextKey(error);
|
||||||
if (error)
|
if (error) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (result.contains(k.subkey(0).fingerprint())) {
|
if (result.contains(k.subkey(0).fingerprint())) {
|
||||||
error = m_gpgContext->startKeyDeletion(k, true); // GG
|
error = m_gpgContext->startKeyDeletion(k, true); // GG
|
||||||
@ -537,8 +542,9 @@ QStringList SigningPrivate::signersOf(const QString id) const
|
|||||||
GpgME::Error error = m_gpgContext->startKeyListing("");
|
GpgME::Error error = m_gpgContext->startKeyListing("");
|
||||||
while (!error) {
|
while (!error) {
|
||||||
GpgME::Key k = m_gpgContext->nextKey(error);
|
GpgME::Key k = m_gpgContext->nextKey(error);
|
||||||
if (error)
|
if (error) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
for (unsigned int i = 0; i < k.numUserIDs(); ++i) {
|
for (unsigned int i = 0; i < k.numUserIDs(); ++i) {
|
||||||
for (unsigned int j = 0; j < k.userID(i).numSignatures(); ++j) {
|
for (unsigned int j = 0; j < k.userID(i).numSignatures(); ++j) {
|
||||||
|
Loading…
Reference in New Issue
Block a user