Merged revisions 945593 via svnmerge from

svn+ssh://tmcguire@svn.kde.org/home/kde/branches/KDE/4.2/kdepim

........
  r945593 | dfaure | 2009-03-27 20:01:19 +0100 (Fri, 27 Mar 2009) | 2 lines
  
  stop crashing on me regularly
........

svn path=/branches/kdepim/enterprise4/kdepim/; revision=953734
wilder-work
Thomas McGuire 17 years ago
parent e7aa8d0a6e
commit 97aac2e294
  1. 2
      folderstorage.cpp

@ -1101,7 +1101,7 @@ void FolderStorage::ignoreJobsForMessage( KMMessage *msg )
//FIXME: the questions is : should we iterate through all
//messages in jobs? I don't think so, because it would
//mean canceling the jobs that work with other messages
if ( (*it)->msgList().first() == msg )
if ( !(*it)->msgList().isEmpty() && (*it)->msgList().first() == msg )
{
FolderJob* job = (*it);
it = mJobList.erase( it );

Loading…
Cancel
Save