aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/qml_container.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-11 03:54:46 +0800
committerobscuren <geffobscura@gmail.com>2014-07-11 03:54:46 +0800
commitfc8bd7229ee25e214130df98875ecc13e4650911 (patch)
tree4938ae8de73d99a20bba9999103b381e52519e66 /ethereal/qml_container.go
parent685aebc72e9d5fc3fde275961709c4496fdb73cd (diff)
parentc2bca5939d1d78d1548fcd43c29390fb06a508c0 (diff)
downloadgo-tangerine-fc8bd7229ee25e214130df98875ecc13e4650911.tar
go-tangerine-fc8bd7229ee25e214130df98875ecc13e4650911.tar.gz
go-tangerine-fc8bd7229ee25e214130df98875ecc13e4650911.tar.bz2
go-tangerine-fc8bd7229ee25e214130df98875ecc13e4650911.tar.lz
go-tangerine-fc8bd7229ee25e214130df98875ecc13e4650911.tar.xz
go-tangerine-fc8bd7229ee25e214130df98875ecc13e4650911.tar.zst
go-tangerine-fc8bd7229ee25e214130df98875ecc13e4650911.zip
Merge branch 'develop'
Diffstat (limited to 'ethereal/qml_container.go')
-rw-r--r--ethereal/qml_container.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/ethereal/qml_container.go b/ethereal/qml_container.go
index a8ce1cb75..cb43a99bd 100644
--- a/ethereal/qml_container.go
+++ b/ethereal/qml_container.go
@@ -5,6 +5,7 @@ import (
"github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethutil"
"github.com/go-qml/qml"
+ "runtime"
)
type QmlApplication struct {
@@ -20,7 +21,14 @@ func NewQmlApplication(path string, lib *UiLib) *QmlApplication {
}
func (app *QmlApplication) Create() error {
- component, err := app.engine.LoadFile(app.path)
+ path := string(app.path)
+
+ // For some reason for windows we get /c:/path/to/something, windows doesn't like the first slash but is fine with the others so we are removing it
+ if string(app.path[0]) == "/" && runtime.GOOS == "windows" {
+ path = app.path[1:]
+ }
+
+ component, err := app.engine.LoadFile(path)
if err != nil {
logger.Warnln(err)
}