author | zautrix <zautrix> | 2004-09-11 16:44:49 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-11 16:44:49 (UTC) |
commit | 06be094df4e34cc41db113d8c0e78eccde5365b5 (patch) (side-by-side diff) | |
tree | b99317f9c83886d05b83cdb49e066f414e0fde25 /kmicromail/opiemail.cpp | |
parent | 53e10fa5e66620ff1eba1c9d17738103ad511c91 (diff) | |
download | kdepimpi-06be094df4e34cc41db113d8c0e78eccde5365b5.zip kdepimpi-06be094df4e34cc41db113d8c0e78eccde5365b5.tar.gz kdepimpi-06be094df4e34cc41db113d8c0e78eccde5365b5.tar.bz2 |
Mail more useful
-rw-r--r-- | kmicromail/opiemail.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index b2119e6..19ffdb3 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp @@ -8,8 +8,9 @@ #include "mailistviewitem.h" #include "viewmail.h" #include "selectstore.h" #include "selectsmtp.h" +#include "accountitem.h" #include <qmessagebox.h> #include <qtimer.h> #include <libkdepim/externalapphandler.h> @@ -243,9 +244,16 @@ void OpieMail::displayMail() { ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() ); } } - +void OpieMail::slotGetMail() +{ + QListViewItem * item = folderView->currentItem(); + if ( ! item ) return; + while ( item->parent () ) + item = item->parent (); + ((AccountViewItem *)item)->contextMenuSelected( 101 ); +} void OpieMail::slotDeleteMail() { if (!mailView->currentItem()) return; RecMailP mail = ((MailListViewItem*)mailView->currentItem() )->data(); |