From eae22d9a484f2fba0e7250450df4d2f565f10731 Mon Sep 17 00:00:00 2001 From: Ingo Klöcker Date: Fri, 19 Jan 2024 15:11:01 +0100 Subject: 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. --- lang/qt/src/qgpgmekeylistjob.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'lang/qt/src/qgpgmekeylistjob.cpp') diff --git a/lang/qt/src/qgpgmekeylistjob.cpp b/lang/qt/src/qgpgmekeylistjob.cpp index 706d2575..e395359a 100644 --- a/lang/qt/src/qgpgmekeylistjob.cpp +++ b/lang/qt/src/qgpgmekeylistjob.cpp @@ -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("

An error occurred while fetching " - "the keys from the backend:

" - "

%1

", - QString::fromLocal8Bit(mResult.error().asString())); - KMessageBox::error(parent, msg, caption); -} -#endif + #include "qgpgmekeylistjob.moc" -- cgit