nits
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
6263dbf1fa
commit
0663488d6d
|
@ -4,8 +4,6 @@ import (
|
||||||
"cwtch.im/cwtch/model"
|
"cwtch.im/cwtch/model"
|
||||||
"cwtch.im/ui/go/the"
|
"cwtch.im/ui/go/the"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
|
||||||
//"encoding/hex"
|
|
||||||
"git.openprivacy.ca/openprivacy/log"
|
"git.openprivacy.ca/openprivacy/log"
|
||||||
"github.com/therecipe/qt/core"
|
"github.com/therecipe/qt/core"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
@ -222,11 +220,10 @@ func (this *MessageModel) requestEIR() {
|
||||||
// notify the gui that the message acknowledgement at index idx has been modified
|
// notify the gui that the message acknowledgement at index idx has been modified
|
||||||
func (this *MessageModel) editMessage(idx int) {
|
func (this *MessageModel) editMessage(idx int) {
|
||||||
if idx < 0 || idx >= this.num() {
|
if idx < 0 || idx >= this.num() {
|
||||||
log.Errorf("cant edit message %v. probably fine", idx)
|
log.Debugf("cant edit message %v. probably fine", idx)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debugf("editMessage(%v, %v)", idx, this.ackIdx)
|
|
||||||
indexObject := this.Index(idx, 0, core.NewQModelIndex())
|
indexObject := this.Index(idx, 0, core.NewQModelIndex())
|
||||||
// replace third param with []int{} to update all attributes instead
|
// replace third param with []int{} to update all attributes instead
|
||||||
this.DataChanged(indexObject, indexObject, []int{this.ackIdx})
|
this.DataChanged(indexObject, indexObject, []int{this.ackIdx})
|
||||||
|
|
Reference in New Issue