qt: Remove left-over mentions of showErrorDialog
* lang/qt/src/qgpgmedecryptjob.cpp, lang/qt/src/qgpgmeimportfromkeyserverjob.cpp, lang/qt/src/qgpgmeimportjob.cpp: Remove obsolete comment. * lang/qt/src/qgpgmekeylistjob.cpp, lang/qt/src/qgpgmelistallkeysjob.cpp: Remove long obsolete, #if 0'ed out definitions of showErrorDialog. -- Informing the users about errors is the responsibility of the users of the QGpgME Job API since a long time.
This commit is contained in:
parent
cc1f2b5acb
commit
eae22d9a48
@ -126,8 +126,6 @@ GpgME::DecryptionResult QGpgME::QGpgMEDecryptJob::exec(const QByteArray &cipherT
|
||||
return mResult;
|
||||
}
|
||||
|
||||
//PENDING(marc) implement showErrorDialog()
|
||||
|
||||
void QGpgMEDecryptJob::resultHook(const result_type &tuple)
|
||||
{
|
||||
mResult = std::get<0>(tuple);
|
||||
|
@ -78,8 +78,6 @@ GpgME::ImportResult QGpgME::QGpgMEImportFromKeyserverJob::exec(const std::vector
|
||||
return mResult;
|
||||
}
|
||||
|
||||
// PENDING(marc) implement showErrorDialog()
|
||||
|
||||
void QGpgME::QGpgMEImportFromKeyserverJob::resultHook(const result_type &tuple)
|
||||
{
|
||||
mResult = std::get<0>(tuple);
|
||||
|
@ -166,8 +166,6 @@ Error QGpgMEImportJob::startLater(const QByteArray &certData)
|
||||
return {};
|
||||
}
|
||||
|
||||
// PENDING(marc) implement showErrorDialog()
|
||||
|
||||
void QGpgME::QGpgMEImportJob::resultHook(const result_type &tuple)
|
||||
{
|
||||
mResult = std::get<0>(tuple);
|
||||
|
@ -161,17 +161,5 @@ void QGpgMEKeyListJob::addMode(KeyListMode mode)
|
||||
{
|
||||
context()->addKeyListMode(mode);
|
||||
}
|
||||
#if 0
|
||||
void QGpgMEKeyListJob::showErrorDialog(QWidget *parent, const QString &caption) const
|
||||
{
|
||||
if (!mResult.error() || mResult.error().isCanceled()) {
|
||||
return;
|
||||
}
|
||||
const QString msg = i18n("<qt><p>An error occurred while fetching "
|
||||
"the keys from the backend:</p>"
|
||||
"<p><b>%1</b></p></qt>",
|
||||
QString::fromLocal8Bit(mResult.error().asString()));
|
||||
KMessageBox::error(parent, msg, caption);
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "qgpgmekeylistjob.moc"
|
||||
|
@ -245,17 +245,4 @@ void QGpgMEListAllKeysJob::resultHook(const result_type &tuple)
|
||||
mResult = std::get<0>(tuple);
|
||||
}
|
||||
|
||||
#if 0
|
||||
void QGpgMEListAllKeysJob::showErrorDialog(QWidget *parent, const QString &caption) const
|
||||
{
|
||||
if (!mResult.error() || mResult.error().isCanceled()) {
|
||||
return;
|
||||
}
|
||||
const QString msg = i18n("<qt><p>An error occurred while fetching "
|
||||
"the keys from the backend:</p>"
|
||||
"<p><b>%1</b></p></qt>",
|
||||
QString::fromLocal8Bit(mResult.error().asString()));
|
||||
KMessageBox::error(parent, msg, caption);
|
||||
}
|
||||
#endif
|
||||
#include "qgpgmelistallkeysjob.moc"
|
||||
|
Loading…
Reference in New Issue
Block a user