-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() | |||
415 | } | 415 | } |
416 | else | 416 | else |
417 | { | 417 | { |
418 | ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() ); | 418 | QListViewItem*item = mailView->currentItem(); |
419 | if (item) | ||
420 | ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() ); | ||
419 | } | 421 | } |
420 | } | 422 | } |
421 | void OpieMail::slotGetAllMail() | 423 | void OpieMail::slotGetAllMail() |