-rw-r--r-- | kmicromail/opiemail.cpp | 4 |
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 @@ -415,7 +415,9 @@ void OpieMail::displayMail() } else { - ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() ); + QListViewItem*item = mailView->currentItem(); + if (item) + ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() ); } } void OpieMail::slotGetAllMail() |