~chrisppy/beagles

5f2c5672f80a350147a85a03949a3d879b5e7708 — Chris Palmer 23 days ago fbdff3e
Fix possible nil pointer
1 files changed, 5 insertions(+), 0 deletions(-)

M ui/list.go
M ui/list.go => ui/list.go +5 -0
@@ 98,6 98,11 @@ func (w *list) remove() string {

func (w *list) find(key string) int {
	indices := w.Widget.FindItems("", key, false, false)

	if len(indices) == 0 {
		return 0
	}

	return indices[0]
}