Skip to content

Commit 8adbc8c

Browse files
committed
Drop composer file warnings from Qt (QTBUG-35943)
1 parent ef43d86 commit 8adbc8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

log.go

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"fmt"
99
"log"
1010
"path/filepath"
11+
"strings"
1112
)
1213

1314
// SetLogger sets the target for messages logged by the qml package,
@@ -95,6 +96,11 @@ func init() {
9596

9697
//export hookLogHandler
9798
func hookLogHandler(cmsg *C.LogMessage) {
99+
// Workarund for QTBUG-35943
100+
text := unsafeString(cmsg.text, cmsg.textLen)
101+
if strings.HasPrefix(text, `"Qt Warning: Compose file:`) {
102+
return
103+
}
98104
msg := logMessage{c: cmsg}
99105
logHandler.QmlOutput(&msg)
100106
msg.invalid = true

0 commit comments

Comments
 (0)