aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/qt/src/debug.cpp')
-rw-r--r--lang/qt/src/debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/qt/src/debug.cpp b/lang/qt/src/debug.cpp
index 03244dc6..acde9d42 100644
--- a/lang/qt/src/debug.cpp
+++ b/lang/qt/src/debug.cpp
@@ -44,9 +44,9 @@ QDebug operator<<(QDebug debug, const GpgME::Error &err)
{
#ifdef Q_OS_WIN
// On Windows, we tell libgpg-error to return (translated) error messages as UTF-8
- const auto errAsString = QString::fromUtf8(err.asString());
+ const auto errAsString = QString::fromStdString(err.asStdString());
#else
- const auto errAsString = QString::fromLocal8Bit(err.asString());
+ const auto errAsString = QString::fromLocal8Bit(err.asStdString().c_str());
#endif
const bool oldSetting = debug.autoInsertSpaces();
debug.nospace() << errAsString << " (code: " << err.code() << ", source: " << err.source() << ")";