aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-27 05:14:17 +0800
committerobscuren <geffobscura@gmail.com>2014-06-27 05:14:17 +0800
commit52ddf044ae28cf84e61ced2d9193e7d5e806e1ef (patch)
tree47e561a918796dd9d044eb4bc22da0950d7e0ebd /ethereal
parent214721ca0155d872a355991506149fdf7e018ad5 (diff)
downloaddexon-52ddf044ae28cf84e61ced2d9193e7d5e806e1ef.tar.gz
dexon-52ddf044ae28cf84e61ced2d9193e7d5e806e1ef.tar.zst
dexon-52ddf044ae28cf84e61ced2d9193e7d5e806e1ef.zip
Initialization of Qt should happen before anything else
Diffstat (limited to 'ethereal')
-rw-r--r--ethereal/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethereal/main.go b/ethereal/main.go
index 799b50e4b..1674b59d9 100644
--- a/ethereal/main.go
+++ b/ethereal/main.go
@@ -10,10 +10,11 @@ import (
)
func main() {
- runtime.GOMAXPROCS(runtime.NumCPU())
-
+ // Leave QT on top at ALL times.
qml.Init(nil)
+ runtime.GOMAXPROCS(runtime.NumCPU())
+
var interrupted = false
utils.RegisterInterrupt(func(os.Signal) {
interrupted = true