Commit da83984d authored by Laurent Montel's avatar Laurent Montel
Browse files

Port deprecated methods

parent d912b4c4
Pipeline #215098 passed with stage
in 1 minute and 26 seconds
......@@ -161,7 +161,7 @@ KGpgCaffPrivate::checkNextLoop()
ids << i18nc("%1 is the key id, %2 is the name and comment of the key or uid, %3 is the email address of the uid",
"%1: %2 &lt;%3&gt;", nd->getId(), nd->getNameComment(), nd->getEmail());
KMessageBox::detailedSorry(qobject_cast<QWidget *>(q->parent()),
KMessageBox::detailedError(qobject_cast<QWidget *>(q->parent()),
i18np("No mail was sent for the following user id because it belongs to a key without encryption capability:",
"No mail was sent for the following user ids because they belong to keys without encryption capability:",
m_noEncIds.count()),
......@@ -179,7 +179,7 @@ KGpgCaffPrivate::checkNextLoop()
ids << i18nc("%1 is the key id, %2 is the name and comment of the key or uid, %3 is the email address of the uid",
"%1: %2 &lt;%3&gt;", nd->getId(), nd->getNameComment(), nd->getEmail());
KMessageBox::detailedSorry(qobject_cast<QWidget *>(q->parent()),
KMessageBox::detailedError(qobject_cast<QWidget *>(q->parent()),
i18np("No mail was sent for the following user id because it was already signed:",
"No mail was sent for the following user ids because they were already signed:",
m_alreadyIds.count()),
......
......@@ -261,7 +261,7 @@ void KgpgTextEdit::slotDecryptDone(int result)
// FIXME choose codec
setPlainText(decr->decryptedText().join(lf) + lf);
} else if (result != KGpgTransaction::TS_USER_ABORTED) {
KMessageBox::detailedSorry(this, i18n("Decryption failed."), decr->getMessages().join(lf));
KMessageBox::detailedError(this, i18n("Decryption failed."), decr->getMessages().join(lf));
}
decr->deleteLater();
......
......@@ -1360,7 +1360,7 @@ void KeysManager::slotRevokeGenerated(int result)
case KGpgTransaction::TS_USER_ABORTED:
break;
default:
KMessageBox::detailedSorry(this, i18n("Creation of the revocation certificate failed..."), genRev->getOutput());
KMessageBox::detailedError(this, i18n("Creation of the revocation certificate failed..."), genRev->getOutput());
break;
}
}
......@@ -2591,7 +2591,7 @@ void KeysManager::slotImportDone(int result)
const QStringList rawmsgs(import->getMessages());
if (result != 0) {
KMessageBox::detailedSorry(this, i18n("Key importing failed. Please see the detailed log for more information."),
KMessageBox::detailedError(this, i18n("Key importing failed. Please see the detailed log for more information."),
rawmsgs.join(QLatin1String("\n")) , i18n("Key Import"));
}
......
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