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.
This commit is contained in:
parent
7103315829
commit
ececfd5de8
@ -379,9 +379,8 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Write back changes
|
* Write back changes
|
||||||
*
|
*
|
||||||
* @param runtime If this option is set, the changes will take effect at run-time, as
|
* @param runtime this parameter is ignored. Changes will always
|
||||||
* far as this is possible. Otherwise, they will take effect at the next
|
* be made with --runtime set.
|
||||||
* start of the respective backend programs.
|
|
||||||
*/
|
*/
|
||||||
virtual void sync(bool runtime) = 0;
|
virtual void sync(bool runtime) = 0;
|
||||||
|
|
||||||
|
@ -216,17 +216,12 @@ QGpgMENewCryptoConfigGroup *QGpgMENewCryptoConfigComponent::group(const QString
|
|||||||
|
|
||||||
void QGpgMENewCryptoConfigComponent::sync(bool runtime)
|
void QGpgMENewCryptoConfigComponent::sync(bool runtime)
|
||||||
{
|
{
|
||||||
Q_UNUSED(runtime)
|
Q_UNUSED(runtime) // runtime is always set by engine_gpgconf
|
||||||
// ### how to pass --runtime to gpgconf? -> marcus: not yet supported (2010-11-20)
|
|
||||||
if (const Error err = m_component.save()) {
|
if (const Error err = m_component.save()) {
|
||||||
#if 0
|
qCWarning(GPGPME_BACKEND_LOG) << ":"
|
||||||
TODO port
|
<< "Error from gpgconf while saving configuration: %1"
|
||||||
const QString wmsg = i18n("Error from gpgconf while saving configuration: %1", QString::fromLocal8Bit(err.asString()));
|
<< QString::fromLocal8Bit(err.asString());
|
||||||
qCWarning(GPGPME_BACKEND_LOG) << ":" << wmsg;
|
|
||||||
KMessageBox::error(0, wmsg);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
// ### unset dirty state again
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////
|
////
|
||||||
|
Loading…
Reference in New Issue
Block a user