summaryrefslogtreecommitdiffabout
path: root/kmicromail/opiemail.cpp
authorzautrix <zautrix>2004-12-05 14:38:15 (UTC)
committer zautrix <zautrix>2004-12-05 14:38:15 (UTC)
commitea023772f18fa52d2b3d523a68d707576629326f (patch) (unidiff)
tree5c41a05954c543fefb49a27f256f2995a5a67b2a /kmicromail/opiemail.cpp
parent06bebf5be01898145c4f721a8d002519141e7f3b (diff)
downloadkdepimpi-ea023772f18fa52d2b3d523a68d707576629326f.zip
kdepimpi-ea023772f18fa52d2b3d523a68d707576629326f.tar.gz
kdepimpi-ea023772f18fa52d2b3d523a68d707576629326f.tar.bz2
ompi mail view fix
Diffstat (limited to 'kmicromail/opiemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/opiemail.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp
index c20c7ce..ec192ea 100644
--- a/kmicromail/opiemail.cpp
+++ b/kmicromail/opiemail.cpp
@@ -299,6 +299,21 @@ void OpieMail::replyMail()
299 delete settings; 299 delete settings;
300 300
301} 301}
302void OpieMail::displayNextMail(ViewMail * vm)
303{
304 QListViewItem*item = mailView->currentItem();
305 if (!item) return;
306 item = item->itemBelow();
307 if (!item) {
308 vm->setCaption(i18n("End of List" ));
309 return;
310 }
311 mailView->setCurrentItem(item);
312 RecMailP mail = ((MailListViewItem*)item)->data();
313 RecBodyP body = folderView->fetchBody(mail);
314 vm->setBody( body );
315 vm->setMail( mail );
316}
302void OpieMail::displayMail() 317void OpieMail::displayMail()
303{ 318{
304 QListViewItem*item = mailView->currentItem(); 319 QListViewItem*item = mailView->currentItem();
@@ -313,6 +328,7 @@ void OpieMail::displayMail()
313#else 328#else
314 readMail.resize( 640, 480); 329 readMail.resize( 640, 480);
315#endif 330#endif
331 connect( &readMail,SIGNAL( showNextMail(ViewMail *) ), this, SLOT( displayNextMail(ViewMail *) ) );
316 readMail.exec(); 332 readMail.exec();
317 333
318 if ( readMail.deleted ) 334 if ( readMail.deleted )