aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/qgpgmenewcryptoconfig.cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2017-01-02 13:03:08 +0000
committerAndre Heinecke <[email protected]>2017-01-02 13:05:06 +0000
commitececfd5de81f1851943be7b284b672d5b02aceb4 (patch)
tree9c0b286dfbd1609b2cf736d15e14d43772801fea /lang/qt/src/qgpgmenewcryptoconfig.cpp
parentcore: Always use runtime for gpgconf changes (diff)
downloadgpgme-ececfd5de81f1851943be7b284b672d5b02aceb4.tar.gz
gpgme-ececfd5de81f1851943be7b284b672d5b02aceb4.zip
qt: Update config sync doc / comment
* lang/qt/src/cryptoconfig.h (CryptoConfig::sync): Document that runtime option is always set. * lang/qt/Src/qgpgmenewcryptoconfig.cpp (QGpgMENewCryptoConfigComponent::sync): Remove outdated comment and warn on error.
Diffstat (limited to '')
-rw-r--r--lang/qt/src/qgpgmenewcryptoconfig.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/lang/qt/src/qgpgmenewcryptoconfig.cpp b/lang/qt/src/qgpgmenewcryptoconfig.cpp
index eb3af56f..49b27caa 100644
--- a/lang/qt/src/qgpgmenewcryptoconfig.cpp
+++ b/lang/qt/src/qgpgmenewcryptoconfig.cpp
@@ -216,17 +216,12 @@ QGpgMENewCryptoConfigGroup *QGpgMENewCryptoConfigComponent::group(const QString
void QGpgMENewCryptoConfigComponent::sync(bool runtime)
{
- Q_UNUSED(runtime)
- // ### how to pass --runtime to gpgconf? -> marcus: not yet supported (2010-11-20)
+ Q_UNUSED(runtime) // runtime is always set by engine_gpgconf
if (const Error err = m_component.save()) {
-#if 0
- TODO port
- const QString wmsg = i18n("Error from gpgconf while saving configuration: %1", QString::fromLocal8Bit(err.asString()));
- qCWarning(GPGPME_BACKEND_LOG) << ":" << wmsg;
- KMessageBox::error(0, wmsg);
-#endif
+ qCWarning(GPGPME_BACKEND_LOG) << ":"
+ << "Error from gpgconf while saving configuration: %1"
+ << QString::fromLocal8Bit(err.asString());
}
- // ### unset dirty state again
}
////