nits
the build was successful Details

This commit is contained in:
erinn 2020-12-08 16:58:07 -08:00
parent 6263dbf1fa
commit 0663488d6d
1 changed files with 1 additions and 4 deletions

View File

@ -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})