diff options
Diffstat (limited to 'Godeps/_workspace/src')
-rw-r--r-- | Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.cpp b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.cpp index c2255aaae..024e5ec9c 100644 --- a/Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.cpp +++ b/Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.cpp @@ -855,6 +855,8 @@ QQmlListProperty_ *newListProperty(GoAddr *addr, intptr_t reflectIndex, intptr_t void internalLogHandler(QtMsgType severity, const QMessageLogContext &context, const QString &text) { + if (context.file == NULL) return; + QByteArray textba = text.toUtf8(); LogMessage message = {severity, textba.constData(), textba.size(), context.file, (int)strlen(context.file), context.line}; hookLogHandler(&message); |