diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-28 17:23:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-28 17:23:18 +0800 |
commit | f3e78c8f3cd2196ef70a41f298b6df556543d581 (patch) | |
tree | e3db9bf06e87b1259a43161338447e6f82cf4c42 /ui/qt | |
parent | c54a85ee644bf02dd79e43e6a0ee3528bb39a815 (diff) | |
download | go-tangerine-f3e78c8f3cd2196ef70a41f298b6df556543d581.tar go-tangerine-f3e78c8f3cd2196ef70a41f298b6df556543d581.tar.gz go-tangerine-f3e78c8f3cd2196ef70a41f298b6df556543d581.tar.bz2 go-tangerine-f3e78c8f3cd2196ef70a41f298b6df556543d581.tar.lz go-tangerine-f3e78c8f3cd2196ef70a41f298b6df556543d581.tar.xz go-tangerine-f3e78c8f3cd2196ef70a41f298b6df556543d581.tar.zst go-tangerine-f3e78c8f3cd2196ef70a41f298b6df556543d581.zip |
reworking messages => log
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/filter.go | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/ui/qt/filter.go b/ui/qt/filter.go index 423d5bd43..cb4d0311b 100644 --- a/ui/qt/filter.go +++ b/ui/qt/filter.go @@ -9,24 +9,21 @@ import ( func NewFilterFromMap(object map[string]interface{}, eth core.EthManager) *core.Filter { filter := ui.NewFilterFromMap(object, eth) - if object["altered"] != nil { - filter.Altered = makeAltered(object["altered"]) + if object["topics"] != nil { + filter.SetTopics(makeTopics(object["topics"])) } return filter } -func makeAltered(v interface{}) (d []core.AccountChange) { +func makeTopics(v interface{}) (d [][]byte) { if qList, ok := v.(*qml.List); ok { - var s []interface{} + var s []string qList.Convert(&s) - d = makeAltered(s) - } else if qMap, ok := v.(*qml.Map); ok { - var m map[string]interface{} - qMap.Convert(&m) - - d = makeAltered(m) + d = ui.MakeTopics(s) + } else if str, ok := v.(string); ok { + d = ui.MakeTopics(str) } return |