cpp: Fix Error::hasSystemError

* lang/cpp/src/context.cpp (Error::hasSystemError): Invert logic to
do what it says.

--
This is safe because according to codesearch it is only used
in QGpgME
This commit is contained in:
Andre Heinecke 2019-03-13 12:00:22 +01:00
parent 1bdab961c5
commit c4cc47ee8f
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -155,7 +155,7 @@ int Error::toErrno() const
// static
bool Error::hasSystemError()
{
return gpgme_err_code_from_syserror() == GPG_ERR_MISSING_ERRNO ;
return gpgme_err_code_from_syserror() != GPG_ERR_MISSING_ERRNO ;
}
// static