summaryrefslogtreecommitdiffabout
path: root/kmicromail/opiemail.cpp
authorzautrix <zautrix>2005-01-24 18:27:06 (UTC)
committer zautrix <zautrix>2005-01-24 18:27:06 (UTC)
commitbb33b559609356149ae51cb50c081b3e82aecafb (patch) (side-by-side diff)
tree4878aa5887bf1c539845ce9c4e5470eea94d41cc /kmicromail/opiemail.cpp
parent77f93c632b66b5c8d92e4c63330362272ca1fc40 (diff)
downloadkdepimpi-bb33b559609356149ae51cb50c081b3e82aecafb.zip
kdepimpi-bb33b559609356149ae51cb50c081b3e82aecafb.tar.gz
kdepimpi-bb33b559609356149ae51cb50c081b3e82aecafb.tar.bz2
pixmap update fix
Diffstat (limited to 'kmicromail/opiemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/opiemail.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp
index 760e3b0..68f0eb3 100644
--- a/kmicromail/opiemail.cpp
+++ b/kmicromail/opiemail.cpp
@@ -406,25 +406,27 @@ void OpieMail::displayMail()
connect( &readMail,SIGNAL( showNextMail(ViewMail *) ), this, SLOT( displayNextMail(ViewMail *) ) );
connect( &readMail,SIGNAL( deleteAndDisplayNextMail(ViewMail *) ), this, SLOT(deleteAndDisplayNextMail(ViewMail *) ) );
connect( &readMail,SIGNAL( signalDownloadMail() ), this, SLOT( slotDownloadMail() ) );
readMail.exec();
if ( readMail.deleted )
{
folderView->refreshCurrent();
}
else
{
- ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() );
+ QListViewItem*item = mailView->currentItem();
+ if (item)
+ ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() );
}
}
void OpieMail::slotGetAllMail()
{
QListViewItem * item = folderView->firstChild();
while ( item ){
((AccountViewItem *)item)->contextMenuSelected( 101 );
item = item->nextSibling ();
}
}
void OpieMail::slotGetMail()
{