author | alwin <alwin> | 2004-03-08 03:05:23 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-03-08 03:05:23 (UTC) |
commit | a3836842bfabc973f27f2686320f7a207c59b10a (patch) (side-by-side diff) | |
tree | 49c389706af22752a7f9d6c255cd3cb0ce80f211 | |
parent | 25d95c1b4e61445c695177c79049ccf7741e83f7 (diff) | |
download | opie-a3836842bfabc973f27f2686320f7a207c59b10a.zip opie-a3836842bfabc973f27f2686320f7a207c59b10a.tar.gz opie-a3836842bfabc973f27f2686320f7a207c59b10a.tar.bz2 |
different context menus for mail and nntp messages
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp index d8b58b6..61e7dc4 100644 --- a/noncore/net/mail/opiemail.cpp +++ b/noncore/net/mail/opiemail.cpp @@ -178,2 +178,4 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int ) { + if (!mailView->currentItem()) return; + RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data(); /* just the RIGHT button - or hold on pda */ @@ -185,5 +187,10 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int ) { - m->insertItem(tr("Read this mail"),this,SLOT(displayMail())); - m->insertItem(tr("Delete this mail"),this,SLOT(slotDeleteMail())); - m->insertItem(tr("Copy/Move this mail"),this,SLOT(slotMoveCopyMail())); + if (mail.Wrapper()->getType()==MAILLIB::A_NNTP) { + m->insertItem(tr("Read this posting"),this,SLOT(displayMail())); +// m->insertItem(tr("Copy this posting"),this,SLOT(slotMoveCopyMail())); + } else { + m->insertItem(tr("Read this mail"),this,SLOT(displayMail())); + m->insertItem(tr("Delete this mail"),this,SLOT(slotDeleteMail())); + m->insertItem(tr("Copy/Move this mail"),this,SLOT(slotMoveCopyMail())); + } m->setFocus(); |