572d9ff72883264fbffe35e998b9a6193f20137a — Devon Johnson 12 days ago 3238159
Fix segfault on delete
1 files changed, 5 insertions(+), 1 deletions(-)

M widgets/account.go
M widgets/account.go => widgets/account.go +5 -1
@@ 185,7 185,11 @@ if len(acct.msglist.Store().Uids()) == 0 {
  		return nil, errors.New("no message selected")
  	}
- 	return acct.msglist.Selected(), nil
+ 	msg := acct.msglist.Selected()
+ 	if msg == nil {
+ 		return nil, errors.New("message not loaded")
+ 	}
+ 	return msg, nil
  }
  
  func (acct *AccountView) SelectedMessagePart() *PartInfo {