summaryrefslogtreecommitdiffabout
path: root/kmicromail/opiemail.cpp
Side-by-side diff
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
@@ -417,3 +417,5 @@ void OpieMail::displayMail()
{
- ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() );
+ QListViewItem*item = mailView->currentItem();
+ if (item)
+ ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() );
}