diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-24 20:34:22 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-24 20:34:22 +0800 |
commit | 44da1801d87abff4803338d9bcfb25be93969dad (patch) | |
tree | 8a3f9fcb9cf3a2012928d13034c8a20c52b65da9 /ethereal/main.go | |
parent | 82a84dca807c8966079253977329ef0800d20557 (diff) | |
download | dexon-44da1801d87abff4803338d9bcfb25be93969dad.tar dexon-44da1801d87abff4803338d9bcfb25be93969dad.tar.gz dexon-44da1801d87abff4803338d9bcfb25be93969dad.tar.bz2 dexon-44da1801d87abff4803338d9bcfb25be93969dad.tar.lz dexon-44da1801d87abff4803338d9bcfb25be93969dad.tar.xz dexon-44da1801d87abff4803338d9bcfb25be93969dad.tar.zst dexon-44da1801d87abff4803338d9bcfb25be93969dad.zip |
Fixed strange issue where qml will crash first run after go install
Diffstat (limited to 'ethereal/main.go')
-rw-r--r-- | ethereal/main.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ethereal/main.go b/ethereal/main.go index ebda552ee..0f99be886 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 |