aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-24 20:34:22 +0800
committerobscuren <geffobscura@gmail.com>2014-07-24 20:34:22 +0800
commit44da1801d87abff4803338d9bcfb25be93969dad (patch)
tree8a3f9fcb9cf3a2012928d13034c8a20c52b65da9
parent82a84dca807c8966079253977329ef0800d20557 (diff)
downloadgo-tangerine-44da1801d87abff4803338d9bcfb25be93969dad.tar.gz
go-tangerine-44da1801d87abff4803338d9bcfb25be93969dad.tar.zst
go-tangerine-44da1801d87abff4803338d9bcfb25be93969dad.zip
Fixed strange issue where qml will crash first run after go install
-rw-r--r--ethereal/main.go5
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