Permalink
Browse files

Drop composer file warnings from Qt (QTBUG-35943)

  • Loading branch information...
1 parent ef43d86 commit 8adbc8c2bf2da9f609df366683ad0f47a89c3d49 @niemeyer niemeyer committed Apr 7, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 log.go
View
@@ -8,6 +8,7 @@ import (
"fmt"
"log"
"path/filepath"
+ "strings"
)
// SetLogger sets the target for messages logged by the qml package,
@@ -95,6 +96,11 @@ func init() {
//export hookLogHandler
func hookLogHandler(cmsg *C.LogMessage) {
+ // Workarund for QTBUG-35943
+ text := unsafeString(cmsg.text, cmsg.textLen)
+ if strings.HasPrefix(text, `"Qt Warning: Compose file:`) {
+ return
+ }
msg := logMessage{c: cmsg}
logHandler.QmlOutput(&msg)
msg.invalid = true

0 comments on commit 8adbc8c

Please sign in to comment.