handle a connection error as Knotification instead of a modal dialog.

svn path=/trunk/KDE/kdepim/; revision=1023489
wilder-work
Martin Koller 17 years ago
parent e47ec5a6c3
commit 7ebc757e09
  1. 11
      popaccount.cpp

@ -1089,8 +1089,15 @@ void PopAccount::slotResult( KJob* )
}
// force the dialog to be shown next time the account is checked
if (!mStorePasswd) mPasswd = "";
job->ui()->setWindow( 0 );
job->ui()->showErrorMessage();
if ( job->error() == KIO::ERR_COULD_NOT_CONNECT ) {
KNotification::event( "mail-check-error",
i18n( "Error while checking account %1 for new mail:\n%2",
name(), job->errorString() ) );
}
else {
job->ui()->setWindow( 0 );
job->ui()->showErrorMessage();
}
}
slotCancel();
}

Loading…
Cancel
Save