SVN commit 645830 by wstephens:

Don't crash if we can't find the folder.
BUG#121863

svn path=/branches/kdepim/enterprise/kdepim/; revision=668092
wilder-work
Pradeepto Bhattacharya 19 years ago
parent 41d211b4fb
commit 5ae10e2c7e
  1. 4
      kmfilteraction.cpp

@ -1378,7 +1378,9 @@ KMFilterAction::ReturnCode KMFilterActionCopy::process(KMMessage* msg) const
// TODO opening and closing the folder is a trade off.
// Perhaps Copy is a seldomly used action for now,
// but I gonna look at improvements ASAP.
if ( !mFolder && mFolder->open() != 0 )
if ( !mFolder )
return ErrorButGoOn;
if ( mFolder && mFolder->open() != 0 )
return ErrorButGoOn;
// copy the message 1:1

Loading…
Cancel
Save