QListView tried to show the tooltip with the subject of a message which was just added to the current folder. For some reason getting the corresponding MsgBase object failed and KMail bailed out. Simply return an empty string if this should ever happen again.

svn path=/branches/KDE/3.5/kdepim/; revision=454658
wilder-work
Ingo Klcker 21 years ago
parent 2db5ac7003
commit f879436b17
  1. 3
      headeritem.cpp

@ -145,7 +145,8 @@ QString HeaderItem::text( int col) const
KMMsgBase *mMsgBase = headers->folder()->getMsgBase( mMsgId );
QString tmp;
assert(mMsgBase);
if ( !mMsgBase )
return QString();
if ( col == headers->paintInfo()->senderCol ) {
if ( (headers->folder()->whoField().lower() == "to") && !headers->paintInfo()->showReceiver )

Loading…
Cancel
Save