diff options
author | zelig <viktor.tron@gmail.com> | 2014-07-31 00:02:43 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-07-31 00:02:43 +0800 |
commit | 34e937c9761f963ac4d3c9781d72ae92e54c0761 (patch) | |
tree | 9a4c78944acd6ee924eb86916f32d508de0b66a6 /ethereal/qml_container.go | |
parent | 2f5c95610feb77dd714bf9295d6127bef58f31bc (diff) | |
parent | 834803f1e8ce45040045359185c8b8d75f63de2c (diff) | |
download | dexon-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar dexon-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.gz dexon-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.bz2 dexon-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.lz dexon-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.xz dexon-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.zst dexon-34e937c9761f963ac4d3c9781d72ae92e54c0761.zip |
merge upstream
Diffstat (limited to 'ethereal/qml_container.go')
-rw-r--r-- | ethereal/qml_container.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ethereal/qml_container.go b/ethereal/qml_container.go index cb43a99bd..53ff13c2f 100644 --- a/ethereal/qml_container.go +++ b/ethereal/qml_container.go @@ -3,6 +3,7 @@ package main import ( "github.com/ethereum/eth-go/ethchain" "github.com/ethereum/eth-go/ethpub" + "github.com/ethereum/eth-go/ethstate" "github.com/ethereum/eth-go/ethutil" "github.com/go-qml/qml" "runtime" @@ -24,7 +25,7 @@ func (app *QmlApplication) Create() error { 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" { + if app.path[0] == '/' && runtime.GOOS == "windows" { path = app.path[1:] } @@ -50,11 +51,11 @@ func (app *QmlApplication) NewBlock(block *ethchain.Block) { app.win.Call("onNewBlockCb", pblock) } -func (app *QmlApplication) ObjectChanged(stateObject *ethchain.StateObject) { +func (app *QmlApplication) ObjectChanged(stateObject *ethstate.StateObject) { app.win.Call("onObjectChangeCb", ethpub.NewPStateObject(stateObject)) } -func (app *QmlApplication) StorageChanged(storageObject *ethchain.StorageState) { +func (app *QmlApplication) StorageChanged(storageObject *ethstate.StorageState) { app.win.Call("onStorageChangeCb", ethpub.NewPStorageState(storageObject)) } |