summaryrefslogtreecommitdiff
Unidiff
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
@@ -176,6 +176,8 @@ void OpieMail::slotDeleteMail()
176 176
177void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int ) 177void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
178{ 178{
179 if (!mailView->currentItem()) return;
180 RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data();
179 /* just the RIGHT button - or hold on pda */ 181 /* just the RIGHT button - or hold on pda */
180 if (button!=2) {return;} 182 if (button!=2) {return;}
181 qDebug("Event right/hold"); 183 qDebug("Event right/hold");
@@ -183,9 +185,14 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
183 QPopupMenu *m = new QPopupMenu(0); 185 QPopupMenu *m = new QPopupMenu(0);
184 if (m) 186 if (m)
185 { 187 {
188 if (mail.Wrapper()->getType()==MAILLIB::A_NNTP) {
189 m->insertItem(tr("Read this posting"),this,SLOT(displayMail()));
190// m->insertItem(tr("Copy this posting"),this,SLOT(slotMoveCopyMail()));
191 } else {
186 m->insertItem(tr("Read this mail"),this,SLOT(displayMail())); 192 m->insertItem(tr("Read this mail"),this,SLOT(displayMail()));
187 m->insertItem(tr("Delete this mail"),this,SLOT(slotDeleteMail())); 193 m->insertItem(tr("Delete this mail"),this,SLOT(slotDeleteMail()));
188 m->insertItem(tr("Copy/Move this mail"),this,SLOT(slotMoveCopyMail())); 194 m->insertItem(tr("Copy/Move this mail"),this,SLOT(slotMoveCopyMail()));
195 }
189 m->setFocus(); 196 m->setFocus();
190 m->exec( QPoint( QCursor::pos().x(), QCursor::pos().y()) ); 197 m->exec( QPoint( QCursor::pos().x(), QCursor::pos().y()) );
191 delete m; 198 delete m;