summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/opiemail.cpp7
1 files changed, 7 insertions, 0 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,2 +187,6 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
{
+ 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()));
@@ -188,2 +194,3 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
m->insertItem(tr("Copy/Move this mail"),this,SLOT(slotMoveCopyMail()));
+ }
m->setFocus();