aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/qgpgmekeylistjob.cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-01-19 15:11:01 +0100
committerIngo Klöcker <[email protected]>2024-01-19 15:44:22 +0100
commiteae22d9a484f2fba0e7250450df4d2f565f10731 (patch)
tree7dcf4fd90d0df671ce5aacf12b45869fabf334e9 /lang/qt/src/qgpgmekeylistjob.cpp
parentbuild: Re-add still needed custom changes to Python autoconf macro (diff)
downloadgpgme-eae22d9a484f2fba0e7250450df4d2f565f10731.tar.gz
gpgme-eae22d9a484f2fba0e7250450df4d2f565f10731.zip
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.
Diffstat (limited to 'lang/qt/src/qgpgmekeylistjob.cpp')
-rw-r--r--lang/qt/src/qgpgmekeylistjob.cpp14
1 files changed, 1 insertions, 13 deletions
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("<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"