From 44da1801d87abff4803338d9bcfb25be93969dad Mon Sep 17 00:00:00 2001 From: obscuren Date: Thu, 24 Jul 2014 14:34:22 +0200 Subject: [PATCH] Fixed strange issue where qml will crash first run after go install --- ethereal/main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ethereal/main.go b/ethereal/main.go index ebda552ee2..0f99be8865 100644 --- a/ethereal/main.go +++ b/ethereal/main.go @@ -14,11 +14,10 @@ const ( ) func main() { - // Leave QT on top at ALL times. Qt Needs to be initialized from the main thread - qml.Init(nil) - runtime.GOMAXPROCS(runtime.NumCPU()) + qml.Init(nil) + var interrupted = false utils.RegisterInterrupt(func(os.Signal) { interrupted = true