Don't crash when checking mail and the POP filter dialog is not shown

because all POP filters already match.
BUG: 167008

svn path=/trunk/KDE/kdepim/; revision=835319
wilder-work
Thomas McGuire 18 years ago
parent 17989809db
commit ab67681399
  1. 6
      popaccount.cpp

@ -616,7 +616,11 @@ void PopAccount::slotJobFinished() {
mPopFilterConfirmationDialog->exec();
}
if ( mPopFilterConfirmationDialog->result() == QDialog::Accepted ) {
// If the dialog was accepted or never shown (because all pop filters already
// set the actions), mark the messages for deletion, download or for keeping
// them. Then advance to the next stage, the download stage.
if ( !dlgPopup ||
mPopFilterConfirmationDialog->result() == QDialog::Accepted ) {
for ( int i = 0; i < mHeadersOnServer.count(); ++i ) {
const KMPopHeaders *header = mHeadersOnServer[i];

Loading…
Cancel
Save