瀏覽代碼

Update obscuren/qml revision

Taylor Gerring 10 年之前
父節點
當前提交
643eda5c2d
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      Godeps/Godeps.json
  2. 2 0
      Godeps/_workspace/src/github.com/obscuren/qml/cpp/capi.cpp

+ 1 - 1
Godeps/Godeps.json

@@ -67,7 +67,7 @@
 		},
 		{
 			"ImportPath": "github.com/obscuren/qml",
-			"Rev": "807b51d4104231784fa5e336ccd26d61759a3cb2"
+			"Rev": "c288002b52e905973b131089a8a7c761d4a2c36a"
 		},
 		{
 			"ImportPath": "github.com/rakyll/globalconf",

+ 2 - 0
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);