diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/msgviewer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index 05da2a0..7cd5553 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -506,7 +506,7 @@ func (pv *PartViewer) SetSource(reader io.Reader) { } func (pv *PartViewer) attemptCopy() { - if pv.source != nil && pv.pager.Process != nil { + if pv.source != nil && pv.pager != nil && pv.pager.Process != nil { header := message.Header{} header.SetText("Content-Transfer-Encoding", pv.part.Encoding) header.SetContentType(pv.part.MIMEType, pv.part.Params) |